mirror of
https://github.com/openharmony/third_party_quickjs.git
synced 2026-07-01 21:03:59 -04:00
!1 fix debugger cannot collect data for symbol
Merge pull request !1 from chenqy930/fix-debugger-collect-symbol-data
This commit is contained in:
@@ -10721,7 +10721,12 @@ JSValue JS_ToStringInternal(JSContext *ctx, JSValueConst val, BOOL is_ToProperty
|
||||
if (is_ToPropertyKey) {
|
||||
return JS_DupValue(ctx, val);
|
||||
} else {
|
||||
#ifdef ENABLE_JS_DEBUG
|
||||
str = "[object Object]";
|
||||
goto new_string;
|
||||
#else
|
||||
return JS_ThrowTypeError(ctx, "cannot convert symbol to string");
|
||||
#endif
|
||||
}
|
||||
#ifdef CONFIG_BIGNUM
|
||||
case JS_TAG_FLOAT64:
|
||||
|
||||
Reference in New Issue
Block a user