Test case: JSON.parse() Expected: SyntaxError: JSON Parse error: Unexpected identifier "undefined" Actual: Error: JSON.parse requires at least one parameter ECMA-262: https://tc39.github.io/ecma262/#sec-json.parse No matter how many arguments are passed, `JSON.parse` always coerces first arg to string (step 1) and attempts to parse it (step 2). Other browsers throw SyntaxError.
Created attachment 371426 [details] Patch
Comment on attachment 371426 [details] Patch Attachment 371426 [details] did not pass ios-sim-ews (ios-simulator-wk2): Output: https://webkit-queues.webkit.org/results/12387336 New failing tests: http/tests/resourceLoadStatistics/website-data-removal-for-site-navigated-to-with-link-decoration.html
Created attachment 371431 [details] Archive of layout-test-results from ews124 for ios-simulator-wk2 The attached test failures were seen while running run-webkit-tests on the ios-sim-ews. Bot: ews124 Port: ios-simulator-wk2 Platform: Mac OS X 10.14.5
Comment on attachment 371426 [details] Patch r=me
Comment on attachment 371426 [details] Patch Clearing flags on attachment: 371426 Committed r246162: <https://trac.webkit.org/changeset/246162>
All reviewed patches have been landed. Closing bug.
<rdar://problem/51493975>