diff options
author | 2022-04-01 01:17:36 -0700 | |
---|---|---|
committer | 2022-04-01 01:17:36 -0700 | |
commit | e0011fd6baf2fe2b12d1b2a909981da1a183cdad (patch) | |
tree | e59f664577a99789c933ca2fe60841b10c675893 /integration/bunjs-only-snippets/globals.test.js | |
parent | 8e0ee052eb900465f6bffb9d4c226d3ca762780a (diff) | |
download | bun-e0011fd6baf2fe2b12d1b2a909981da1a183cdad.tar.gz bun-e0011fd6baf2fe2b12d1b2a909981da1a183cdad.tar.zst bun-e0011fd6baf2fe2b12d1b2a909981da1a183cdad.zip |
[bun.js] Use `Headers` from WebKit instead of custom
Diffstat (limited to 'integration/bunjs-only-snippets/globals.test.js')
-rw-r--r-- | integration/bunjs-only-snippets/globals.test.js | 3 |
1 files changed, 2 insertions, 1 deletions
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); }); |