fixed delete super.x error
This commit is contained in:
parent
67d90092fe
commit
46996ff258
2 changed files with 2 additions and 2 deletions
|
@ -23022,6 +23022,8 @@ static __exception int js_parse_delete(JSParseState *s)
|
||||||
case OP_scope_get_private_field:
|
case OP_scope_get_private_field:
|
||||||
return js_parse_error(s, "cannot delete a private class field");
|
return js_parse_error(s, "cannot delete a private class field");
|
||||||
case OP_get_super_value:
|
case OP_get_super_value:
|
||||||
|
fd->byte_code.size = fd->last_opcode_pos;
|
||||||
|
fd->last_opcode_pos = -1;
|
||||||
emit_op(s, OP_throw_error);
|
emit_op(s, OP_throw_error);
|
||||||
emit_atom(s, JS_ATOM_NULL);
|
emit_atom(s, JS_ATOM_NULL);
|
||||||
emit_u8(s, JS_THROW_ERROR_DELETE_SUPER);
|
emit_u8(s, JS_THROW_ERROR_DELETE_SUPER);
|
||||||
|
|
|
@ -98,8 +98,6 @@ test262/test/language/expressions/assignment/target-member-computed-reference-nu
|
||||||
test262/test/language/expressions/assignment/target-member-computed-reference-null.js:32: strict mode: Test262Error: Expected a DummyError but got a TypeError
|
test262/test/language/expressions/assignment/target-member-computed-reference-null.js:32: strict mode: Test262Error: Expected a DummyError but got a TypeError
|
||||||
test262/test/language/expressions/assignment/target-member-computed-reference-undefined.js:32: Test262Error: Expected a DummyError but got a TypeError
|
test262/test/language/expressions/assignment/target-member-computed-reference-undefined.js:32: Test262Error: Expected a DummyError but got a TypeError
|
||||||
test262/test/language/expressions/assignment/target-member-computed-reference-undefined.js:32: strict mode: Test262Error: Expected a DummyError but got a TypeError
|
test262/test/language/expressions/assignment/target-member-computed-reference-undefined.js:32: strict mode: Test262Error: Expected a DummyError but got a TypeError
|
||||||
test262/test/language/expressions/delete/super-property-null-base.js:26: Test262Error: Expected a ReferenceError but got a TypeError
|
|
||||||
test262/test/language/expressions/delete/super-property-null-base.js:26: strict mode: Test262Error: Expected a ReferenceError but got a TypeError
|
|
||||||
test262/test/language/expressions/dynamic-import/usage-from-eval.js:26: TypeError: $DONE() not called
|
test262/test/language/expressions/dynamic-import/usage-from-eval.js:26: TypeError: $DONE() not called
|
||||||
test262/test/language/expressions/dynamic-import/usage-from-eval.js:26: strict mode: TypeError: $DONE() not called
|
test262/test/language/expressions/dynamic-import/usage-from-eval.js:26: strict mode: TypeError: $DONE() not called
|
||||||
test262/test/language/expressions/function/static-init-await-binding.js:16: SyntaxError: 'await' is a reserved identifier
|
test262/test/language/expressions/function/static-init-await-binding.js:16: SyntaxError: 'await' is a reserved identifier
|
||||||
|
|
Loading…
Reference in a new issue