From e0011fd6baf2fe2b12d1b2a909981da1a183cdad Mon Sep 17 00:00:00 2001 From: Jarred Sumner Date: Fri, 1 Apr 2022 01:17:36 -0700 Subject: [bun.js] Use `Headers` from WebKit instead of custom --- integration/bunjs-only-snippets/globals.test.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'integration/bunjs-only-snippets/globals.test.js') diff --git a/integration/bunjs-only-snippets/globals.test.js b/integration/bunjs-only-snippets/globals.test.js index 831bbd93f..b498e0e8e 100644 --- a/integration/bunjs-only-snippets/globals.test.js +++ b/integration/bunjs-only-snippets/globals.test.js @@ -16,7 +16,8 @@ it("extendable", () => { var Foo = class extends Class {}; var bar = new Foo(); expect(bar instanceof Class).toBe(true); - expect(Class.prototype instanceof Class).toBe(true); + expect(!!Class.prototype).toBe(true); + expect(typeof Class.prototype).toBe("object"); } expect(true).toBe(true); }); -- cgit v1.2.3