Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@arv
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save arv/d4a7ef55bfa7eef26d3c to your computer and use it in GitHub Desktop.
Save arv/d4a7ef55bfa7eef26d3c to your computer and use it in GitHub Desktop.
'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