Nicolò Ribaudo 2351a638b5
Fix bugs in the _wrapNativeSuper helper (#7533)
* 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
2018-05-18 00:04:12 +02:00

10 lines
206 B
JavaScript

var env = {
Array: null,
};
// Wee need to use "with" to avoid leaking the modified Array to other tests.
with (env) {
class List extends Array {}
expect(List.prototype.__proto__).toBeUndefined();
}