Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 0e62abf49f09d6c4041d27a24c490744d40da398
      
https://github.com/WebKit/WebKit/commit/0e62abf49f09d6c4041d27a24c490744d40da398
  Author: Shu-yu Guo <[email protected]>
  Date:   2026-01-28 (Wed, 28 Jan 2026)

  Changed paths:
    A JSTests/stress/captureStackTrace-on-error-before-materialization.js
    M Source/JavaScriptCore/runtime/ErrorConstructor.cpp
    M Source/JavaScriptCore/runtime/ErrorInstance.cpp
    M Source/JavaScriptCore/runtime/ErrorInstance.h

  Log Message:
  -----------
  [JSC] Track stack materialization in in Error.captureStackTrace
https://bugs.webkit.org/show_bug.cgi?id=305789
rdar://168941975

Reviewed by Yusuke Suzuki.

Error.captureStackTrace defines a .stack own property. If this happens on an
ErrorInstance before info is materialized, then when it is materialized, the
.stack defined by Error.captureStackTrace will be overwritten.

This PR adds a bit that avoids materializing .stack properties on
ErrorInstances that had Error.captureStackTrace on them before materialization.

Test: JSTests/stress/captureStackTrace-on-error-before-materialization.js
Canonical link: https://commits.webkit.org/306356@main



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

Reply via email to