Skip to content

Commit 4342023

Browse files
author
Fabrice Bellard
committed
removed incorrect await in async yield*
1 parent 3ba181e commit 4342023

File tree

2 files changed

+0
-5
lines changed

2 files changed

+0
-5
lines changed

quickjs.c

-1
Original file line numberDiff line numberDiff line change
@@ -25148,7 +25148,6 @@ static __exception int js_parse_assign_expr2(JSParseState *s, int parse_flags)
2514825148
/* OP_async_yield_star takes the value as parameter */
2514925149
emit_op(s, OP_get_field);
2515025150
emit_atom(s, JS_ATOM_value);
25151-
emit_op(s, OP_await);
2515225151
emit_op(s, OP_async_yield_star);
2515325152
} else {
2515425153
/* OP_yield_star takes (value, done) as parameter */

test262_errors.txt

-4
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,5 @@ test262/test/language/expressions/dynamic-import/usage-from-eval.js:26: strict m
1818
test262/test/language/expressions/optional-chaining/optional-call-preserves-this.js:21: TypeError: cannot read property 'c' of undefined
1919
test262/test/language/expressions/optional-chaining/optional-call-preserves-this.js:15: strict mode: TypeError: cannot read property '_b' of undefined
2020
test262/test/language/global-code/script-decl-lex-var-declared-via-eval-sloppy.js:13: Test262Error: variable Expected a SyntaxError to be thrown but no exception was thrown at all
21-
test262/test/language/statements/async-generator/yield-star-promise-not-unwrapped.js:25: TypeError: $DONE() not called
22-
test262/test/language/statements/async-generator/yield-star-promise-not-unwrapped.js:25: strict mode: TypeError: $DONE() not called
23-
test262/test/language/statements/async-generator/yield-star-return-then-getter-ticks.js:131: TypeError: $DONE() not called
24-
test262/test/language/statements/async-generator/yield-star-return-then-getter-ticks.js:131: strict mode: TypeError: $DONE() not called
2521
test262/test/language/statements/for-of/head-lhs-async-invalid.js:14: unexpected error type: Test262: This statement should not be evaluated.
2622
test262/test/language/statements/for-of/head-lhs-async-invalid.js:14: strict mode: unexpected error type: Test262: This statement should not be evaluated.

0 commit comments

Comments
 (0)