* 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
10 lines
207 B
JavaScript
10 lines
207 B
JavaScript
class MyDate extends Date {
|
|
constructor(time) {
|
|
super(time);
|
|
}
|
|
}
|
|
let myDate = new MyDate();
|
|
|
|
expect(myDate.toString).toBe(Date.prototype.toString);
|
|
expect(typeof myDate.toString()).toBe("string");
|