diff options
Diffstat (limited to 'deps/v8/test/mjsunit/harmony/weakrefs/basics.js')
-rw-r--r-- | deps/v8/test/mjsunit/harmony/weakrefs/basics.js | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/deps/v8/test/mjsunit/harmony/weakrefs/basics.js b/deps/v8/test/mjsunit/harmony/weakrefs/basics.js index 9a1a99efe4d..547a688c2ae 100644 --- a/deps/v8/test/mjsunit/harmony/weakrefs/basics.js +++ b/deps/v8/test/mjsunit/harmony/weakrefs/basics.js @@ -148,23 +148,3 @@ let proxy = new Proxy(obj, handler); let wr = new WeakRef(proxy); })(); - -(function TestCleanupSomeWithoutFinalizationRegistry() { - assertThrows(() => FinalizationRegistry.prototype.cleanupSome.call({}), TypeError); - // Does not throw: - let fg = new FinalizationRegistry(() => {}); - let rv = FinalizationRegistry.prototype.cleanupSome.call(fg); - assertEquals(undefined, rv); -})(); - -(function TestCleanupSomeWithNonCallableCallback() { - let fg = new FinalizationRegistry(() => {}); - assertThrows(() => fg.cleanupSome(1), TypeError); - assertThrows(() => fg.cleanupSome(1n), TypeError); - assertThrows(() => fg.cleanupSome(Symbol()), TypeError); - assertThrows(() => fg.cleanupSome({}), TypeError); - assertThrows(() => fg.cleanupSome('foo'), TypeError); - assertThrows(() => fg.cleanupSome(true), TypeError); - assertThrows(() => fg.cleanupSome(false), TypeError); - assertThrows(() => fg.cleanupSome(null), TypeError); -})(); |