Bug 1343481 - Part 2: Stop using StarGegerator for async function.

Tag #1287
This commit is contained in:
Gaming4JC
2019-12-01 18:44:06 -05:00
committed by Roy Tam
parent 7eb5d46c11
commit 45337018ef
10 changed files with 58 additions and 55 deletions
+1 -1
View File
@@ -727,5 +727,5 @@ frontend::CompileStandaloneAsyncFunction(JSContext* cx, MutableHandleFunction fu
BytecodeCompiler compiler(cx, cx->tempLifoAlloc(), options, srcBuf, emptyGlobalScope,
TraceLogger_ParserCompileFunction);
return compiler.compileStandaloneFunction(fun, StarGenerator, AsyncFunction, parameterListEnd);
return compiler.compileStandaloneFunction(fun, NotGenerator, AsyncFunction, parameterListEnd);
}