RESOLVED FIXED 232720
We need to PreferNumber when calling toPrimitive for coercion to BigInt
https://bugs.webkit.org/show_bug.cgi?id=232720
Summary We need to PreferNumber when calling toPrimitive for coercion to BigInt
Alexey Shvayka
Reported 2021-11-04 12:32:13 PDT
BigInt constructor should coerce its argument with PreferNumber hint
Attachments
Patch (2.59 KB, patch)
2021-11-04 12:33 PDT, Alexey Shvayka
no flags
Patch (5.08 KB, patch)
2021-11-04 13:12 PDT, Alexey Shvayka
no flags
Alexey Shvayka
Comment 1 2021-11-04 12:33:11 PDT
Saam Barati
Comment 2 2021-11-04 12:37:17 PDT
Comment on attachment 443333 [details] Patch Should we change JSValue::toBigInt too?
Alexey Shvayka
Comment 3 2021-11-04 13:12:37 PDT
Created attachment 443335 [details] Patch Change JSValue::toBigInt() and ensure it's covered by tests.
EWS
Comment 4 2021-11-04 15:55:19 PDT
Committed r285317 (243889@main): <https://commits.webkit.org/243889@main> All reviewed patches have been landed. Closing bug and clearing flags on attachment 443335 [details].
Radar WebKit Bug Importer
Comment 5 2021-11-04 15:56:21 PDT
Note You need to log in before you can comment on or make changes to this bug.