From 859b810db1856e45bd515c5560fe2aad00e7e917 Mon Sep 17 00:00:00 2001 From: Linus Groh Date: Wed, 8 Dec 2021 20:08:26 +0000 Subject: [PATCH] LibJS/Tests: Enable two more skipped tests which now pass Only two skipped tests remaining overall :^) --- Userland/Libraries/LibJS/Tests/this-value-strict.js | 2 +- Userland/Libraries/LibJS/Tests/this-value.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Userland/Libraries/LibJS/Tests/this-value-strict.js b/Userland/Libraries/LibJS/Tests/this-value-strict.js index 8d9bf587aa3..e59ef1eec3f 100644 --- a/Userland/Libraries/LibJS/Tests/this-value-strict.js +++ b/Userland/Libraries/LibJS/Tests/this-value-strict.js @@ -358,7 +358,7 @@ describe("derived classes which access this before super should fail", () => { }).toThrowWithMessage(ReferenceError, "|this| has not been initialized"); }); - test.skip("access of this via a eval in arrow function", () => { + test("access of this via a eval in arrow function", () => { class IncorrectConstructor extends Base { constructor() { const arrow = () => eval("() => this")(); diff --git a/Userland/Libraries/LibJS/Tests/this-value.js b/Userland/Libraries/LibJS/Tests/this-value.js index 73571e9e849..619dce427f7 100644 --- a/Userland/Libraries/LibJS/Tests/this-value.js +++ b/Userland/Libraries/LibJS/Tests/this-value.js @@ -356,7 +356,7 @@ describe("derived classes which access this before super should fail", () => { }).toThrowWithMessage(ReferenceError, "|this| has not been initialized"); }); - test.skip("access of this via a eval in arrow function", () => { + test("access of this via a eval in arrow function", () => { class IncorrectConstructor extends Base { constructor() { const arrow = () => eval("() => this")();