rename own binding inside constructor if it collides with our class reference - fixes #1077
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
class Example {
|
||||
constructor() {
|
||||
var Example;
|
||||
}
|
||||
}
|
||||
|
||||
let t = new Example();
|
||||
@@ -0,0 +1,9 @@
|
||||
"use strict";
|
||||
|
||||
var Example = function Example() {
|
||||
babelHelpers.classCallCheck(this, Example);
|
||||
|
||||
var _Example;
|
||||
};
|
||||
|
||||
var t = new Example();
|
||||
Reference in New Issue
Block a user