Skip to content

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.

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!

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