Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 26ddd2802cf5bc1e212ff1842500d760f9a740bb
      
https://github.com/WebKit/WebKit/commit/26ddd2802cf5bc1e212ff1842500d760f9a740bb
  Author: Keith Miller <[email protected]>
  Date:   2025-10-23 (Thu, 23 Oct 2025)

  Changed paths:
    A JSTests/stress/json-stringify-16-bit-ascii-encode-as-8-bits.js
    M Source/JavaScriptCore/jsc.cpp
    M Source/JavaScriptCore/runtime/JSONObject.cpp
    M Source/WTF/wtf/text/StringBuilderJSON.h

  Log Message:
  -----------
  JSON.stringify should handle 16-bit characters that can be 8-bit better
https://bugs.webkit.org/show_bug.cgi?id=301354
rdar://163271664

Reviewed by Yusuke Suzuki.

Right now the JSON FastStringifier always fails when it sees a 16-bit string. 
It seems to be
relatively common for those strings to actually be Latin-1. We should try to 
copy the string
as Latin-1 before bailing out.

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



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

Reply via email to