-
Notifications
You must be signed in to change notification settings - Fork 864
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
Allow updating of name
of a function, as required by the standard
#1398
Conversation
|
||
@Test | ||
public void canSetFunctionNameInInterpreter() { | ||
try (Context cx = Context.enter()) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
please use Utils.runWithAllOptimizationLevels like many of the other tests are doing
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
And please fix formating, see https://github.com/mozilla/rhino#code-formatting
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done and done.
Totally missed the code formatting, my bad. :-)
maybe it is better to have the tests in the testsrc/org/mozilla/javascript/tests/es6 folder |
Did you also run the Test262 Suite to see if any tests got unbroken there? See https://github.com/mozilla/rhino/blob/master/testsrc/README.md |
I've fixed some 262 tests that were broken, and I have also updated the list of failing tests. Seven more 262 tests now pass! |
This makes sense to me -- thanks! |
See #1297
This PR fixes only Function.name, not the whole issue. 🙂