add hw2
This commit is contained in:
8
node_modules/pino/test/fixtures/pretty/null-prototype.js
generated
vendored
Normal file
8
node_modules/pino/test/fixtures/pretty/null-prototype.js
generated
vendored
Normal file
@@ -0,0 +1,8 @@
|
||||
global.process = { __proto__: process, pid: 123456 }
|
||||
Date.now = function () { return 1459875739796 }
|
||||
require('os').hostname = function () { return 'abcdefghijklmnopqr' }
|
||||
const pino = require(require.resolve('./../../../'))
|
||||
const log = pino({ prettyPrint: true })
|
||||
const obj = Object.create(null)
|
||||
Object.assign(obj, { foo: 'bar' })
|
||||
log.info(obj, 'hello')
|
||||
Reference in New Issue
Block a user