WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 291362
288817
String.prototype.toString make different results in JavaScriptCore again.
https://bugs.webkit.org/show_bug.cgi?id=288817
Summary
String.prototype.toString make different results in JavaScriptCore again.
EntryHi
Reported
2025-02-27 23:50:54 PST
Hello, I found a bug in JSC. ================poc.js===================== function shouldThrow(func, errorMessage) { try { func(); } catch (e) { print(String.prototype.toString.call(errorMessage)); } } for (var i = 0; i < 5; ++i) { shouldThrow(shouldThrow, i.toString()); } ========================================= Step 1: ./jsc poc.js --useConcurrentJIT=0 --jitPolicyScale=0 Step 2: ./jsc poc.js --useConcurrentJIT=0 --jitPolicyScale=1 Result of Step 1: 0 undefined undefined undefined undefined Result of Step 2: 0 1 2 3 4
Attachments
Add attachment
proposed patch, testcase, etc.
Radar WebKit Bug Importer
Comment 1
2025-03-06 23:51:12 PST
<
rdar://problem/146458437
>
Yusuke Suzuki
Comment 2
2025-04-20 07:28:13 PDT
Thanks! will be fixed in
bug 291362
Yusuke Suzuki
Comment 3
2025-04-20 07:28:17 PDT
*** This bug has been marked as a duplicate of
bug 291362
***
EntryHi
Comment 4
2025-04-20 19:04:08 PDT
Hello, I noticed that my bug is reported earlier than
bug 291362
. Why is my bug duplicate?
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug