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 void, delete and typeof and the detection of Errors #2430

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

Comments

@marccarigiet
Copy link

OS: [Ubuntu 20.04]

Describe the bug
In some cases, Errors are not detected after the void and delete Keywords.

A selection of the affected cases:

void var1;
void async;
void as;
void from; 
void yield;
void from >>= this;
void var1 += this;
delete var1 && var1;
typeof async ?? new. let; 

Expected behavior
I'd expect these to throw Errors, mostly Reference Errors.

Additional context

These cases were found using comparative testing with other JavaScript Engines including V8, Spidermonkey and JavaScriptCore. To all my knowledge, this could be intended behavior on your side, but I thought I'd let you know in case it isn't.

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