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

two json stringify fixes #1209

Merged
merged 4 commits into from
Apr 20, 2022
Merged

two json stringify fixes #1209

merged 4 commits into from
Apr 20, 2022

Conversation

rbri
Copy link
Collaborator

@rbri rbri commented Apr 14, 2022

No description provided.

src/org/mozilla/javascript/NativeJSON.java Outdated Show resolved Hide resolved
@@ -294,10 +294,17 @@ private static Object str(Object key, Scriptable holder, StringifyState state) {
value = getProperty(holder, ((Number) key).intValue());
}

if (ScriptRuntime.isSymbol(value)) return Undefined.instance;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this correct, from an EcmaScript pov, that this is here, before the toJSON call or the call to the replacer (if provided)?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will have a look - good point

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@p-bakker you are right here - update is on the way. Many thanks for the review.

@rbri rbri requested a review from p-bakker April 15, 2022 08:20
@p-bakker
Copy link
Collaborator

PR looks good to me

@rbri rbri merged commit 08e8860 into mozilla:master Apr 20, 2022
@rbri rbri deleted the JSON_stringify branch April 20, 2022 06:14
@p-bakker p-bakker added this to the Release 1.7.15 milestone May 4, 2022
@p-bakker p-bakker added the bug Issues considered a bug label May 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Issues considered a bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants