Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

An issue with undefined and postfix operators #2547

Open
marccarigiet opened this issue Sep 16, 2023 · 0 comments
Open

An issue with undefined and postfix operators #2547

marccarigiet opened this issue Sep 16, 2023 · 0 comments

Comments

@marccarigiet
Copy link

Duktape Version

OS

  • Ubuntu 20.04

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant