2018-05-11 02:06:46 +00:00
|
|
|
/** @format */
|
|
|
|
|
2015-10-02 19:27:10 +00:00
|
|
|
// Jest fatals for the following statement (minimal repro case)
|
|
|
|
//
|
|
|
|
// exports.something = Symbol;
|
|
|
|
//
|
|
|
|
// Until it is fixed, mocking the entire node module makes the
|
|
|
|
// problem go away.
|
|
|
|
|
|
|
|
'use strict';
|
2016-04-18 22:42:42 +00:00
|
|
|
|
|
|
|
function EventTarget() {
|
2016-04-27 19:25:38 +00:00
|
|
|
// Support both EventTarget and EventTarget(...)
|
2016-04-18 22:42:42 +00:00
|
|
|
// as a super class, just like the original module does.
|
2016-04-27 19:25:38 +00:00
|
|
|
if (arguments.length > 0) {
|
2016-04-18 22:42:42 +00:00
|
|
|
return EventTarget;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = EventTarget;
|