This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import NativeEventEmitter from 'events'; | |
// export default function EventEmitter() {} | |
// EventEmitter.prototype = Object.create(NativeEventEmitter.prototype); | |
// Object.assign(EventEmitter.prototype, { | |
export default function EventEmitter(...args) { | |
return NativeEventEmitter.call(this, ...args); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict' | |
const chalk = require('chalk') | |
console._log = console.log | |
console._dir = console.dir | |
function extractLocation() { | |
const obj = {} | |
Error.captureStackTrace(obj) |
NewerOlder