[webkit-changes] [WebKit/WebKit] ceba3b: [JSC] set up JSON token end cursor for error token

Yusuke Suzuki noreply at github.com
Thu Jan 9 14:22:41 PST 2025


  Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: ceba3bf999533e0f49c37c546ab5c51e3b221938
      https://github.com/WebKit/WebKit/commit/ceba3bf999533e0f49c37c546ab5c51e3b221938
  Author: Yusuke Suzuki <ysuzuki at apple.com>
  Date:   2025-01-09 (Thu, 09 Jan 2025)

  Changed paths:
    A JSTests/stress/json-range-error.js
    M Source/JavaScriptCore/runtime/LiteralParser.cpp

  Log Message:
  -----------
  [JSC] set up JSON token end cursor for error token
https://bugs.webkit.org/show_bug.cgi?id=285664
rdar://142474970

Reviewed by Justin Michaud.

We should have valid Range even for error token for JSON lexer.
So let's always update token end cursor regardless of whether the token
is error token.

* JSTests/stress/json-range-error.js: Added.
(try.func_1_.func_2_):
(try.func_1_):
(try.eval.string_appeared_here.repeat.2.20.string_appeared_here.string_appeared_here.cl_1_):
* Source/JavaScriptCore/runtime/LiteralParser.cpp:
(JSC::reviverMode>::Lexer::lex):

Canonical link: https://commits.webkit.org/288673@main



To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications


More information about the webkit-changes mailing list