This repository has been archived by the owner on Feb 12, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 421
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Turn crash in JSON.stringify into introspection error (#2412)
Summary: Release notes: None Fixes #2411 Pull Request resolved: #2412 Differential Revision: D9259046 Pulled By: sb98052 fbshipit-source-id: 392b6aa9bc840e72d61f26929e5cc110230c75d0
- Loading branch information
1 parent
22a55f7
commit 9fb1e34
Showing
2 changed files
with
18 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
// throws introspection error | ||
// | ||
(function() { | ||
let o = __abstract("object", "(o)"); | ||
let s; | ||
s = "A" + JSON.stringify(o); | ||
|
||
global.s = s; | ||
})(); |