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

The Enumerable Issue when new Object #582

Closed
YaoHouyou opened this issue Jul 11, 2019 · 1 comment · Fixed by #585
Closed

The Enumerable Issue when new Object #582

YaoHouyou opened this issue Jul 11, 2019 · 1 comment · Fixed by #585

Comments

@YaoHouyou
Copy link

Testcase:

var foo = function () {
	var obj = new Object("z");
	var p = obj.propertyIsEnumerable('0');
	print("Property '0' is Enumerable: " + p);
};
foo();

Command:

java -jar ./rhino/rhino-1.7.11.jar -debug -version 200 testcase.js

Output:

Property '0' is Enumerable: false

Expected output:

Property '0' is Enumerable: true

Description:

According to ECMAScript-262, the value of p should be “true”, but rhino outputs “false”. Does rhino support the ECMAScript-262 standard in this case?

@rbri
Copy link
Collaborator

rbri commented Jul 19, 2019

Made a fix for this.

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

Successfully merging a pull request may close this issue.

2 participants