mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 16:45:03 +00:00
LibJS/Tests: Use canParseSource() for toEval()
We can now enable the "new.target is syntax error outside of function" test :^)
This commit is contained in:
committed by
Andreas Kling
parent
7fc98a96a9
commit
e77202fe0f
@@ -20,7 +20,6 @@ test("basic functionality", () => {
|
||||
expect(new baz().newTarget).toEqual(baz);
|
||||
});
|
||||
|
||||
// FIXME: This does not work as expected as toEval() places the code inside a function :|
|
||||
test.skip("syntax error outside of function", () => {
|
||||
test("syntax error outside of function", () => {
|
||||
expect("new.target").not.toEval();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user