[Webkit-unassigned] [Bug 275939] New: Negative exponent exception for BitInt not thrown in JIT compiler
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Wed Jun 26 21:03:44 PDT 2024
https://bugs.webkit.org/show_bug.cgi?id=275939
Bug ID: 275939
Summary: Negative exponent exception for BitInt not thrown in
JIT compiler
Product: WebKit
Version: WebKit Local Build
Hardware: Unspecified
OS: All
Status: NEW
Severity: Normal
Priority: P2
Component: JavaScriptCore
Assignee: webkit-unassigned at lists.webkit.org
Reporter: q602706150 at gmail.com
The following script should output 10 lines of same result.
```
function opt() {
try {
1n ** -1n;
} catch (e) {
return e
}
return 0;
}
for (let i = 0; i < 10; i++) {
print(opt())
}
```
Actual output:
```
RangeError: Negative exponent is not allowed
RangeError: Negative exponent is not allowed
RangeError: Negative exponent is not allowed
RangeError: Negative exponent is not allowed
RangeError: Negative exponent is not allowed
RangeError: Negative exponent is not allowed
RangeError: Negative exponent is not allowed
0
0
0
```
run args:
cmake-build-debug/bin/jsc --useConcurrentJIT=0 --jitPolicyScale=0.00005 ./test.js
commit id:
47fe298829ac629f561518641b7e6bc4069cb09b
--
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/20240627/a5ad32e9/attachment.htm>
More information about the webkit-unassigned
mailing list