This snippet of code throws a SyntaxError: invalid lexical variable name:
with (new Proxy({globalThis: {Infinity, NaN, undefined}}, {})) {
const {Infinity,NaN,undefined} = this.globalThis;
}
This sort of structure is used by SES in the Compartment polyfill
Besides this snippet being valid js and thus shouldn't be throwing a SyntaxError, if there would be a real syntax error, shouldn't the error include the invalid variable name?
This snippet of code throws a SyntaxError: invalid lexical variable name:
This sort of structure is used by SES in the Compartment polyfill
Besides this snippet being valid js and thus shouldn't be throwing a SyntaxError, if there would be a real syntax error, shouldn't the error include the invalid variable name?