[Webkit-unassigned] [Bug 275939] Negative exponent exception for BigInt not thrown in JIT compiler

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jul 2 20:24:33 PDT 2024


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

--- Comment #2 from YuHao Hu <q602706150 at gmail.com> ---
The same problem happens on div operator.

```
function opt() {
    try {
        0n / 0n
    } catch (e) {
        return e
    }
    return 0;
}
for (let i = 0; i < 10; i++) {
    print(opt())
}
```

Actual output:
```
RangeError: 0 is an invalid divisor value.
RangeError: 0 is an invalid divisor value.
RangeError: 0 is an invalid divisor value.
RangeError: 0 is an invalid divisor value.
RangeError: 0 is an invalid divisor value.
RangeError: 0 is an invalid divisor value.
RangeError: 0 is an invalid divisor value.
0
0
0
```

seems that some `Node` that have side effect were removed, because no one was using them.

-- 
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/20240703/414d3bd9/attachment-0001.htm>


More information about the webkit-unassigned mailing list