浏览代码

LibJS/Tests: Enable two more skipped tests which now pass

Only two skipped tests remaining overall :^)
Linus Groh 3 年之前
父节点
当前提交
859b810db1
共有 2 个文件被更改,包括 2 次插入2 次删除
  1. 1 1
      Userland/Libraries/LibJS/Tests/this-value-strict.js
  2. 1 1
      Userland/Libraries/LibJS/Tests/this-value.js

+ 1 - 1
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");
         }).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 {
         class IncorrectConstructor extends Base {
             constructor() {
             constructor() {
                 const arrow = () => eval("() => this")();
                 const arrow = () => eval("() => this")();

+ 1 - 1
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");
         }).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 {
         class IncorrectConstructor extends Base {
             constructor() {
             constructor() {
                 const arrow = () => eval("() => this")();
                 const arrow = () => eval("() => this")();