Skip to content

Instantly share code, notes, and snippets.

@sylistine
Last active March 2, 2016 19:06
Show Gist options
  • Save sylistine/aaa62e22a3797406671e to your computer and use it in GitHub Desktop.
Save sylistine/aaa62e22a3797406671e to your computer and use it in GitHub Desktop.
class MyClass {
str = "test string"; // not an error in babel + core-js
static x = 0; // not an error in babel + core-js
constructor() {
this.str = "test string";
this.x = 0;
console.log(this.str);
console.log(this.x);
}
}
// obviously outside of class scope.
@mikebarnhardt
Copy link

TOLD YOU SO.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment