Bug 288817

Summary: String.prototype.toString make different results in JavaScriptCore again.
Product: WebKit Reporter: EntryHi <entryhii>
Component: JavaScriptCoreAssignee: Nobody <webkit-unassigned>
Status: RESOLVED DUPLICATE    
Severity: Normal CC: mark.lam, webkit-bug-importer, ysuzuki
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: PC   
OS: Linux   

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
Radar WebKit Bug Importer
Comment 1 2025-03-06 23:51:12 PST
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.