Commit 48261cd8 authored by Shu-yu Guo's avatar Shu-yu Guo Committed by V8 LUCI CQ

Revert "[json] Set options to share on JSON.parse error script"

This reverts commit 67a59d80.

Reason for revert: Breaking JSON module web tests:
https://ci.chromium.org/ui/p/v8/builders/ci/V8%20Blink%20Linux/15211/overview

Original change's description:
> [json] Set options to share on JSON.parse error script
>
> This ensures that the unhandledrejection callback fires.
>
> Bug: chromium:1219363
> Change-Id: I184a728105863f9e207a603f2d45e26393c98796
> Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3322978
> Auto-Submit: Toon Verwaest <verwaest@chromium.org>
> Reviewed-by: Camillo Bruni <cbruni@chromium.org>
> Commit-Queue: Camillo Bruni <cbruni@chromium.org>
> Cr-Commit-Position: refs/heads/main@{#78306}

Bug: chromium:1219363
Change-Id: I2be149b4fcac026dfb9a70b941cf1ff10a8747a1
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/3324387
Auto-Submit: Shu-yu Guo <syg@chromium.org>
Bot-Commit: Rubber Stamper <rubber-stamper@appspot.gserviceaccount.com>
Commit-Queue: Shu-yu Guo <syg@chromium.org>
Owners-Override: Shu-yu Guo <syg@chromium.org>
Cr-Commit-Position: refs/heads/main@{#78310}
parent cb9e8608
......@@ -274,8 +274,6 @@ void JsonParser<Char>::ReportUnexpectedToken(JsonToken token) {
if (isolate()->NeedsSourcePositionsForProfiling()) {
Script::InitLineEnds(isolate(), script);
}
script->set_origin_options(ScriptOriginOptions(true, false));
// We should sent compile error event because we compile JSON object in
// separated source file.
isolate()->debug()->OnCompileError(script);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment