class declarations also have a lexical self binding
This commit is contained in:
9
test/fixtures/transformation/es6-classes-exec/declaration-binding.js
vendored
Normal file
9
test/fixtures/transformation/es6-classes-exec/declaration-binding.js
vendored
Normal file
@@ -0,0 +1,9 @@
|
||||
class Foo {
|
||||
bar() {
|
||||
return Foo;
|
||||
}
|
||||
}
|
||||
|
||||
var Bar = Foo;
|
||||
Foo = 5;
|
||||
assert.equal((new Bar).bar(), Bar);
|
||||
Reference in New Issue
Block a user