mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-06 15:58:39 +09:00
Issue #2142 - Remove the temporary fields option
Now that everything is finished, we don't need the feature flag any more.
This commit is contained in:
parent
1fac189aea
commit
ba9647a12a
4 changed files with 0 additions and 13 deletions
|
|
@ -7491,11 +7491,6 @@ Parser<ParseHandler>::classMember(YieldHandling yieldHandling,
|
|||
return false;
|
||||
|
||||
if (propType == PropertyType::Field) {
|
||||
if (!options().fieldsEnabledOption) {
|
||||
errorAt(propNameOffset, JSMSG_FIELDS_NOT_SUPPORTED);
|
||||
return false;
|
||||
}
|
||||
|
||||
if (isStatic) {
|
||||
if (propAtom == context->names().prototype) {
|
||||
errorAt(propNameOffset, JSMSG_BAD_METHOD_DEF);
|
||||
|
|
|
|||
|
|
@ -1545,11 +1545,6 @@ TokenStream::getTokenInternal(TokenKind* ttp, Modifier modifier)
|
|||
if (identVisibility == NameVisibility::Private) {
|
||||
MOZ_ASSERT(identStart[0] == '#', "Private identifier starts with #");
|
||||
tp->type = TOK_PRIVATE_NAME;
|
||||
|
||||
if (!options().fieldsEnabledOption) {
|
||||
reportError(JSMSG_FIELDS_NOT_SUPPORTED);
|
||||
goto error;
|
||||
}
|
||||
} else {
|
||||
tp->type = TOK_NAME;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -3873,7 +3873,6 @@ JS::TransitiveCompileOptions::copyPODTransitiveOptions(const TransitiveCompileOp
|
|||
forceAsync = rhs.forceAsync;
|
||||
installedFile = rhs.installedFile;
|
||||
sourceIsLazy = rhs.sourceIsLazy;
|
||||
fieldsEnabledOption = rhs.fieldsEnabledOption;
|
||||
introductionType = rhs.introductionType;
|
||||
introductionLineno = rhs.introductionLineno;
|
||||
introductionOffset = rhs.introductionOffset;
|
||||
|
|
|
|||
|
|
@ -3820,7 +3820,6 @@ class JS_FRIEND_API(TransitiveCompileOptions)
|
|||
forceAsync(false),
|
||||
installedFile(false),
|
||||
sourceIsLazy(false),
|
||||
fieldsEnabledOption(true),
|
||||
introductionType(nullptr),
|
||||
introductionLineno(0),
|
||||
introductionOffset(0),
|
||||
|
|
@ -3856,7 +3855,6 @@ class JS_FRIEND_API(TransitiveCompileOptions)
|
|||
bool forceAsync;
|
||||
bool installedFile; // 'true' iff pre-compiling js file in packaged app
|
||||
bool sourceIsLazy;
|
||||
bool fieldsEnabledOption;
|
||||
|
||||
// |introductionType| is a statically allocated C string:
|
||||
// one of "eval", "Function", or "GeneratorFunction".
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue