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

Set.prototype.delete() missing name after . operator #658

Closed
salsan opened this issue Apr 8, 2020 · 3 comments
Closed

Set.prototype.delete() missing name after . operator #658

salsan opened this issue Apr 8, 2020 · 3 comments

Comments

@salsan
Copy link

salsan commented Apr 8, 2020

I use Rhino 1.7.12 2020 01 13 under windows 10 and these flags "-version 200 -strict -f set.js"

My Code

const fruits = new Set(['Apple','Mango']);
 
fruits.delete(0);
print(fruits);

result is

js: "set.js", line 3: missing name after . operator
js: fruits.delete(0);
js: .............^
js: "set.js", line 1: Compilation produced 1 syntax errors.

I solve with

const fruits = new Set(['Apple','Mango']);
 
fruits["delete"](0);
print(fruits);

bu why first example doesn't work ?

@rbri
Copy link
Collaborator

rbri commented May 26, 2020

Can you please make sure there is no hidden char in your set.js.Your code works here without problems.

@rbri
Copy link
Collaborator

rbri commented May 31, 2020

Can you please prepare a simple test case to make it easy for us to reproduce this.

You can have a look at the packages org.mozilla.javascript.tests.es5 or org.mozilla.javascript.tests.es6 for sample tests.

@salsan
Copy link
Author

salsan commented Jun 1, 2020

Hi @rbri,

This is no sense, I only update Windows 10 Home to 1909 version last week and now my set.js work

Rhino 1.7.12 2020 01 13
Microsoft Windows [Versione 10.0.18363.836]

@salsan salsan closed this as completed Jun 1, 2020
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

2 participants