mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-24 16:17:29 +09:00
Bug 1343481 - Part 1: Remove {JSFunction,JSScript,LazyScript}.isGenerator() method.
Tag #1287
This commit is contained in:
parent
4ce0bb5e0a
commit
7eb5d46c11
22 changed files with 133 additions and 64 deletions
|
|
@ -8608,9 +8608,12 @@ EstablishPreconditions(ExclusiveContext* cx, AsmJSParser& parser)
|
|||
break;
|
||||
}
|
||||
|
||||
if (parser.pc->isGenerator())
|
||||
if (parser.pc->isStarGenerator() || parser.pc->isLegacyGenerator())
|
||||
return Warn(parser, JSMSG_USE_ASM_TYPE_FAIL, "Disabled by generator context");
|
||||
|
||||
if (parser.pc->isAsync())
|
||||
return Warn(parser, JSMSG_USE_ASM_TYPE_FAIL, "Disabled by async context");
|
||||
|
||||
if (parser.pc->isArrowFunction())
|
||||
return Warn(parser, JSMSG_USE_ASM_TYPE_FAIL, "Disabled by arrow function context");
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue