diff --git a/Userland/Libraries/LibJS/Tests/builtins/Symbol/Symbol.prototype.valueOf.js b/Userland/Libraries/LibJS/Tests/builtins/Symbol/Symbol.prototype.valueOf.js index b5043cd2b6..02096205c0 100644 --- a/Userland/Libraries/LibJS/Tests/builtins/Symbol/Symbol.prototype.valueOf.js +++ b/Userland/Libraries/LibJS/Tests/builtins/Symbol/Symbol.prototype.valueOf.js @@ -1,11 +1,11 @@ test("basic functionality", () => { const local = Symbol("foo"); - // const global = Symbol.for("foo"); + const global = Symbol.for("foo"); expect(local.valueOf()).toBe(local); - // expect(global.valueOf()).toBe(global); + expect(global.valueOf()).toBe(global); expect(Symbol.prototype.valueOf.call(local)).toBe(local); - // expect(Symbol.prototype.valueOf.call(global)).toBe(global); + expect(Symbol.prototype.valueOf.call(global)).toBe(global); }); test("|this| must be a symbol", () => { diff --git a/Userland/Libraries/LibJS/Tests/syntax/optional-chaining.js b/Userland/Libraries/LibJS/Tests/syntax/optional-chaining.js index bbd221b6e1..cec5bf4b2a 100644 --- a/Userland/Libraries/LibJS/Tests/syntax/optional-chaining.js +++ b/Userland/Libraries/LibJS/Tests/syntax/optional-chaining.js @@ -10,8 +10,7 @@ test("parse optional-chaining", () => { expect("a?.b?.``").not.toEval(); expect("new Foo?.bar").not.toEval(); expect("new (Foo?.bar)").toEval(); - // FIXME: This should pass. - // expect("(new Foo)?.bar").toEval(); + expect("(new Foo)?.bar").toEval(); }); test("evaluate optional-chaining", () => {