mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 07:48:38 +09:00
Issue #1756 - Expose NumberFormat.formatToParts() to content.
This commit is contained in:
parent
5df0028108
commit
bdcb9cc504
4 changed files with 1 additions and 44 deletions
|
|
@ -2206,7 +2206,6 @@ class JS_PUBLIC_API(CompartmentCreationOptions)
|
|||
mergeable_(false),
|
||||
preserveJitCode_(false),
|
||||
cloneSingletons_(false),
|
||||
experimentalNumberFormatFormatToPartsEnabled_(false),
|
||||
sharedMemoryAndAtomics_(false),
|
||||
secureContext_(false)
|
||||
{
|
||||
|
|
@ -2271,23 +2270,6 @@ class JS_PUBLIC_API(CompartmentCreationOptions)
|
|||
return *this;
|
||||
}
|
||||
|
||||
// ECMA-402 is considering adding a "formatToParts" NumberFormat method,
|
||||
// that exposes not just a formatted string but its subcomponents. The
|
||||
// method, its semantics, and its name aren't finalized, so for now it's
|
||||
// exposed *only* if requested.
|
||||
//
|
||||
// Until "formatToParts" is included in a final specification edition, it's
|
||||
// subject to change or removal at any time. Do *not* rely on it in
|
||||
// mission-critical code that can't be changed if ECMA-402 decides not to
|
||||
// accept the method in its current form.
|
||||
bool experimentalNumberFormatFormatToPartsEnabled() const {
|
||||
return experimentalNumberFormatFormatToPartsEnabled_;
|
||||
}
|
||||
CompartmentCreationOptions& setExperimentalNumberFormatFormatToPartsEnabled(bool flag) {
|
||||
experimentalNumberFormatFormatToPartsEnabled_ = flag;
|
||||
return *this;
|
||||
}
|
||||
|
||||
bool getSharedMemoryAndAtomicsEnabled() const;
|
||||
CompartmentCreationOptions& setSharedMemoryAndAtomicsEnabled(bool flag);
|
||||
|
||||
|
|
@ -2312,7 +2294,6 @@ class JS_PUBLIC_API(CompartmentCreationOptions)
|
|||
bool mergeable_;
|
||||
bool preserveJitCode_;
|
||||
bool cloneSingletons_;
|
||||
bool experimentalNumberFormatFormatToPartsEnabled_;
|
||||
bool sharedMemoryAndAtomics_;
|
||||
bool secureContext_;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue