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:
Martok 2023-05-01 00:57:45 +02:00 committed by roytam1
commit ba9647a12a
4 changed files with 0 additions and 13 deletions

View file

@ -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);

View file

@ -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;
}

View file

@ -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;

View file

@ -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".