[Webkit-unassigned] [Bug 256941] New: Function.prototype.caller gives different values

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed May 17 19:24:26 PDT 2023


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

            Bug ID: 256941
           Summary: Function.prototype.caller gives different values
           Product: WebKit
           Version: WebKit Local Build
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: q602706150 at gmail.com

Created attachment 466392

  --> https://bugs.webkit.org/attachment.cgi?id=466392&action=review

poc

run with:
./WebKitBuild/Debug/bin/jsc --useConcurrentJIT=0 --jitPolicyScale=0.001 poc.js

output:
```
true false false // for loop i = 0
false true false // for loop i = 1
false false true // main
```

the opt function was called 3 times. It was called from `a.valueOf` two times, and the 1st time JSC says caller is null, while the 2nd time JSC says caller is `opt`.

-- 
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/20230518/3a490ebe/attachment.htm>


More information about the webkit-unassigned mailing list