From 8bd394f3496009cf8baee45512a58a8a8d2cfce9 Mon Sep 17 00:00:00 2001 From: Timothy Flynn Date: Sat, 16 Nov 2024 12:50:56 -0500 Subject: [PATCH] LibJS: Use an Intl prototype for a Function.prototype.toString test The Temporal.TimeZone object no longer exists in the Temporal spec. --- .../Tests/builtins/Function/Function.prototype.toString.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/LibJS/Tests/builtins/Function/Function.prototype.toString.js b/Libraries/LibJS/Tests/builtins/Function/Function.prototype.toString.js index d4238d3e897..3fb6b96ab72 100644 --- a/Libraries/LibJS/Tests/builtins/Function/Function.prototype.toString.js +++ b/Libraries/LibJS/Tests/builtins/Function/Function.prototype.toString.js @@ -128,8 +128,8 @@ describe("correct behavior", () => { expect(console.debug.toString()).toBe("function debug() { [native code] }"); expect(Function.toString()).toBe("function Function() { [native code] }"); expect( - Object.getOwnPropertyDescriptor(Temporal.TimeZone.prototype, "id").get.toString() - ).toBe("function get id() { [native code] }"); + Object.getOwnPropertyDescriptor(Intl.NumberFormat.prototype, "format").get.toString() + ).toBe("function get format() { [native code] }"); const values = [ // Callable Proxy