tor-browser

The Tor Browser
git clone https://git.dasho.dev/tor-browser.git
Log | Files | Refs | README | LICENSE

commit 52062ee92d1bed8a6b5d72603e06ee9d27343fd0
parent 52e5d7788afd86d90ca3817d31e1db2fa38bbde9
Author: alexical <dothayer@mozilla.com>
Date:   Thu,  9 Oct 2025 18:02:26 +0000

Bug 1992249 - Properly handle symbols with no description r=ochameau,devtools-reviewers

Differential Revision: https://phabricator.services.mozilla.com/D268005

Diffstat:
Mdevtools/client/shared/components/reps/reps/value-summary-reader.mjs | 6++++++
1 file changed, 6 insertions(+), 0 deletions(-)

diff --git a/devtools/client/shared/components/reps/reps/value-summary-reader.mjs b/devtools/client/shared/components/reps/reps/value-summary-reader.mjs @@ -20,6 +20,7 @@ const JSVAL_TYPE_OBJECT = 0x0c; const GETTER_SETTER_MAGIC = 0x0f; const GENERIC_OBJECT_HAS_DENSE_ELEMENTS = 1; +const SYMBOL_NO_DESCRIPTION = 1; const NUMBER_IS_OUT_OF_LINE_MAGIC = 0xf; const MIN_INLINE_INT = -1; @@ -504,6 +505,11 @@ function readValueSummary(reader, depth, shapes) { case JSVAL_TYPE_UNDEFINED: return { type: "undefined" }; case JSVAL_TYPE_SYMBOL: + if (flags & SYMBOL_NO_DESCRIPTION) { + return { + type: "symbol", + }; + } return { type: "symbol", name: reader.readString(),