[Webkit-unassigned] [Bug 256437] New: Iterator does not throw an exception when it is non-object in baselineJIT

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun May 7 18:47:17 PDT 2023


https://bugs.webkit.org/show_bug.cgi?id=256437

            Bug ID: 256437
           Summary: Iterator does not throw an exception when it is
                    non-object in baselineJIT
           Product: WebKit
           Version: WebKit Local Build
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: vettalyray at gmail.com

===========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.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230508/cab12730/attachment-0001.htm>


More information about the webkit-unassigned mailing list