Closed DayDun closed 5 years ago
Eval places an unnecessary semicolon leading to a syntax error:
([] + eval("5 + 5"))[0]
([] + 10;)[0];
Other unexpected behavior:
eval("5") + "test"; eval("") + "test";
'undefinedtest'; ({ }); + 'test';
It would also be great if more complex forms of function construction were supported, like:
[].filter.constructor("return 5 + 5")(); Array.prototype.filter.constructor("return 5 + 5")(); Array.prototype.constructor.constructor("return 5 + 5")();
Hey @DayDun thanks for reporting this! Fixed the eval issue!
About the constructors request, I'll consider to add an option for resolving them as opt-in.
Thanks!
Eval places an unnecessary semicolon leading to a syntax error:
Other unexpected behavior:
It would also be great if more complex forms of function construction were supported, like: