* Remove second wrapper from _wrapNativeSuper * Fix tests on node 4 I DON'T KNOW WHY IT WORKS. * Update fixtures * Use Reflect.construct * Parens * Fix things * Fix things * Undo changes * Fix with sham * Typo
16 lines
256 B
JavaScript
16 lines
256 B
JavaScript
var called = false;
|
|
|
|
var env = {
|
|
Array: function Array() {
|
|
called = true;
|
|
}
|
|
};
|
|
|
|
// Wee need to use "with" to avoid leaking the modified Array to other tests.
|
|
with (env) {
|
|
class List extends Array {};
|
|
new List();
|
|
|
|
expect(called).toBe(true);
|
|
}
|