fix: escape property names in compat mode (#1736)

This commit is contained in:
Nils Knappmeier
2021-02-13 13:40:53 +01:00
parent 77825f8d35
commit f058970169
3 changed files with 40 additions and 630 deletions
@@ -16,7 +16,12 @@ JavaScriptCompiler.prototype = {
return this.internalNameLookup(parent, name);
},
depthedLookup: function(name) {
return [this.aliasable('container.lookup'), '(depths, "', name, '")'];
return [
this.aliasable('container.lookup'),
'(depths, ',
JSON.stringify(name),
')'
];
},
compilerInfo: function() {