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

A bug about Symbol.length #648

Closed
YiWen-y opened this issue Feb 21, 2020 · 0 comments · Fixed by #675
Closed

A bug about Symbol.length #648

YiWen-y opened this issue Feb 21, 2020 · 0 comments · Fixed by #675

Comments

@YiWen-y
Copy link

YiWen-y commented Feb 21, 2020

Revision

rhino-1.7.11

Test case
var NISLFuzzingFunc = function() {
    print(typeof Symbol);
    print(Symbol.length);
};
NISLFuzzingFunc();
Execution steps
java -jar rhino-1.7.11.jar -debug -version 200 testcase.js
Output
function
1
Expected behavior
function
0
Description

Symbol was first defined in ES6, and according to ES standard, the length property value of Symbol Constructor is 0. However, when running this test case , the output of rhino is 1.
The references are as follows:
http://www.ecma-international.org/ecma-262/6.0/index.html#sec-properties-of-the-symbol-constructor

gbrail pushed a commit that referenced this issue May 19, 2020
gbrail pushed a commit that referenced this issue May 27, 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

Successfully merging a pull request may close this issue.

1 participant