Bug 256437
Summary: | Iterator does not throw an exception when it is non-object in baselineJIT | ||
---|---|---|---|
Product: | WebKit | Reporter: | vettalyray |
Component: | JavaScriptCore | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED FIXED | ||
Severity: | Normal | CC: | mark.lam, webkit-bug-importer, ysuzuki |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Local Build | ||
Hardware: | All | ||
OS: | All |
vettalyray
===========test.js===========
for (let i = 0; i < 50; i++) {
try {
const arr = [100, 101];
arr[Symbol.iterator] = Symbol;
[] = arr;
print("hello")
} catch (e) {}
}
=========end of test.js======
Run args:
./jsc test.js --useConcurrentJIT=0 --jitPolicyScale=0
JSC wrongly print "hello" in baselineJIT instead of throwing an exception.
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Alexey Proskuryakov
I can reproduce on macOS (13.4 beta).
Radar WebKit Bug Importer
<rdar://problem/109332913>
Sosuke Suzuki
Pull request: https://github.com/WebKit/WebKit/pull/29634
EWS
Committed 288071@main (54e08075c3f0): <https://commits.webkit.org/288071@main>
Reviewed commits have been landed. Closing PR #29634 and removing active labels.