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鈥檒l 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

Merged
merged 6 commits into from
Oct 31, 2023

Conversation

andreabergia
Copy link
Contributor

See #1297

This PR fixes only Function.name, not the whole issue. 馃檪


@Test
public void canSetFunctionNameInInterpreter() {
try (Context cx = Context.enter()) {
Copy link
Collaborator

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

Copy link
Collaborator

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

Copy link
Contributor Author

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. :-)

@rbri
Copy link
Collaborator

rbri commented Oct 20, 2023

maybe it is better to have the tests in the testsrc/org/mozilla/javascript/tests/es6 folder

@p-bakker p-bakker linked an issue Oct 20, 2023 that may be closed by this pull request
@p-bakker
Copy link
Collaborator

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

@andreabergia
Copy link
Contributor Author

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!

@gbrail
Copy link
Collaborator

gbrail commented Oct 31, 2023

This makes sense to me -- thanks!

@gbrail gbrail merged commit 05ab4ff into mozilla:master Oct 31, 2023
3 checks passed
@p-bakker p-bakker linked an issue Nov 14, 2023 that may be closed by this pull request
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 this pull request may close these issues.

Support ES2015 function name behavior 'name' and 'length' properties of Functions should be configurable
4 participants