LibJS: Use an Intl prototype for a Function.prototype.toString test

The Temporal.TimeZone object no longer exists in the Temporal spec.
This commit is contained in:
Timothy Flynn 2024-11-16 12:50:56 -05:00 committed by Tim Flynn
parent ed76e1ed4b
commit 8bd394f349
Notes: github-actions[bot] 2024-11-18 22:47:41 +00:00

View file

@ -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