2018-05-11 19:43:48 +00:00
|
|
|
/**
|
|
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
|
|
*
|
|
|
|
* This source code is licensed under the MIT license found in the
|
|
|
|
* LICENSE file in the root directory of this source tree.
|
|
|
|
*
|
|
|
|
* @format
|
|
|
|
*/
|
2018-05-11 02:06:46 +00:00
|
|
|
|
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;
|