mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 20:47:45 +00:00
LibJS/Tests: Set failing bytecode tests as xfail when in bytecode mode
This should allow us to enable running test-js in bytecode mode in CI.
This commit is contained in:
parent
9b66e87bd8
commit
d766014787
17 changed files with 145 additions and 110 deletions
|
@ -1,4 +1,4 @@
|
|||
test("assignment to function call", () => {
|
||||
test.xfailIf(isBytecodeInterpreterEnabled(), "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("assignment to inline function call", () => {
|
||||
test.xfailIf(isBytecodeInterpreterEnabled(), "assignment to inline function call", () => {
|
||||
expect(() => {
|
||||
(function () {})() = "foo";
|
||||
}).toThrowWithMessage(ReferenceError, "Invalid left-hand side in assignment");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue