From 2dcc3665abf57c3607cebffdeeca062f5894885d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C3=ABl=20Zasso?= Date: Thu, 1 Aug 2019 08:38:30 +0200 Subject: deps: update V8 to 7.6.303.28 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit PR-URL: https://github.com/nodejs/node/pull/28016 Reviewed-By: Colin Ihrig Reviewed-By: Refael Ackermann (רפאל פלחי) Reviewed-By: Rich Trott Reviewed-By: Michael Dawson Reviewed-By: Jiawen Geng --- .../harmony/weakrefs/cleanup-on-detached-realm.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 deps/v8/test/mjsunit/harmony/weakrefs/cleanup-on-detached-realm.js (limited to 'deps/v8/test/mjsunit/harmony/weakrefs/cleanup-on-detached-realm.js') diff --git a/deps/v8/test/mjsunit/harmony/weakrefs/cleanup-on-detached-realm.js b/deps/v8/test/mjsunit/harmony/weakrefs/cleanup-on-detached-realm.js new file mode 100644 index 0000000000..ca156e0574 --- /dev/null +++ b/deps/v8/test/mjsunit/harmony/weakrefs/cleanup-on-detached-realm.js @@ -0,0 +1,22 @@ +// Copyright 2019 the V8 project authors. All rights reserved. +// Use of this source code is governed by a BSD-style license that can be +// found in the LICENSE file. + +// Flags: --harmony-weak-refs --expose-gc --noincremental-marking + +let r = Realm.create(); +let FG = Realm.eval(r, "FinalizationGroup"); +Realm.detachGlobal(r); + +let fg = new FG(()=> { + assertUnreachable(); +}); + +(() => { + let object = {}; + fg.register(object, {}); + + // object goes out of scope. +})(); + +gc(); -- cgit v1.2.1