fix bindingEquals in constants transformer

This commit is contained in:
Sebastian McKenzie 2015-02-06 23:35:19 +11:00
parent a6d1a5a724
commit ad60d49611

View File

@ -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");
}