mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-20 15:27:32 +09:00
Issue #2026 - Part 2a - Support BigInt in NumberFormat and toLocaleString. https://bugzilla.mozilla.org/show_bug.cgi?id=1543677
This commit is contained in:
parent
b64643e410
commit
d972016c23
12 changed files with 121 additions and 70 deletions
|
|
@ -553,6 +553,10 @@ class MOZ_NON_PARAM alignas(8) Value
|
|||
return isObject() || isNull();
|
||||
}
|
||||
|
||||
bool isNumeric() const {
|
||||
return isNumber() || isBigInt();
|
||||
}
|
||||
|
||||
bool isGCThing() const {
|
||||
#if defined(JS_NUNBOX32)
|
||||
/* gcc sometimes generates signed < without explicit casts. */
|
||||
|
|
@ -1410,6 +1414,7 @@ class WrappedPtrOperations<JS::Value, Wrapper>
|
|||
|
||||
bool isNullOrUndefined() const { return value().isNullOrUndefined(); }
|
||||
bool isObjectOrNull() const { return value().isObjectOrNull(); }
|
||||
bool isNumeric() const { return value().isNumeric(); }
|
||||
|
||||
bool toBoolean() const { return value().toBoolean(); }
|
||||
double toNumber() const { return value().toNumber(); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue