You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
A series of snippets involving undefined and postfix operators that should not be valid JavaScript code don't result in an error on Duktape. The same testcases do result in errors in other JavaScript engines, including V8, Spidermonkey and Jerryscript.
Test cases
undefined++.var1;
undefined--.var1;
undefined++[this];
Observed behavior
All three snippets evaluate to undefined in Duktape.
Expected behavior
I would expect all three snippets to result in SyntaxErrors.
The text was updated successfully, but these errors were encountered:
Duktape Version
OS
Description
A series of snippets involving undefined and postfix operators that should not be valid JavaScript code don't result in an error on Duktape. The same testcases do result in errors in other JavaScript engines, including V8, Spidermonkey and Jerryscript.
Test cases
Observed behavior
All three snippets evaluate to undefined in Duktape.
Expected behavior
I would expect all three snippets to result in SyntaxErrors.
The text was updated successfully, but these errors were encountered: