1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 17:57:35 +00:00

LibJS: Remove bytecode condition from tests expected to fail

This commit is contained in:
Timothy Flynn 2023-08-09 15:14:05 -04:00 committed by Luke Wilde
parent 854330ec73
commit 375a6f5dd9
17 changed files with 143 additions and 186 deletions

View file

@ -1,4 +1,4 @@
test.xfailIf(isBytecodeInterpreterEnabled(), "assignment to function call", () => {
test.xfail("assignment to function call", () => {
expect(() => {
function foo() {}
foo() = "foo";
@ -9,7 +9,7 @@ test("assignment to function call in strict mode", () => {
expect("'use strict'; foo() = 'foo'").toEval();
});
test.xfailIf(isBytecodeInterpreterEnabled(), "assignment to inline function call", () => {
test.xfail("assignment to inline function call", () => {
expect(() => {
(function () {})() = "foo";
}).toThrowWithMessage(ReferenceError, "Invalid left-hand side in assignment");