Last active
August 29, 2015 14:22
-
-
Save arv/d4a7ef55bfa7eef26d3c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
class Base { | |
constructor(x) { | |
this.x = x; | |
} | |
} | |
let f; | |
class D1 extends Base { | |
constructor() { | |
f = () => super(2); | |
} | |
} | |
assertThrows(function() { | |
new D1(); | |
}, ReferenceError); | |
var o = f(); | |
assertEquals(2, o.x); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment