fix bindingEquals in constants transformer
This commit is contained in:
parent
a6d1a5a724
commit
ad60d49611
@ -25,7 +25,7 @@ var visitor = {
|
||||
if (id === constant) continue;
|
||||
|
||||
// check if there's been a local binding that shadows this constant
|
||||
if (scope.bindingEquals(key, constant)) continue;
|
||||
if (!scope.bindingEquals(key, constant)) continue;
|
||||
|
||||
throw state.file.errorWithNode(id, key + " is read-only");
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user