summaryrefslogtreecommitdiff
path: root/deps/v8/test/message/fail/weak-refs-register2.js
diff options
context:
space:
mode:
Diffstat (limited to 'deps/v8/test/message/fail/weak-refs-register2.js')
-rw-r--r--deps/v8/test/message/fail/weak-refs-register2.js2
1 files changed, 2 insertions, 0 deletions
diff --git a/deps/v8/test/message/fail/weak-refs-register2.js b/deps/v8/test/message/fail/weak-refs-register2.js
index b57da62095..31df874585 100644
--- a/deps/v8/test/message/fail/weak-refs-register2.js
+++ b/deps/v8/test/message/fail/weak-refs-register2.js
@@ -2,6 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+// Flags: --harmony-weak-refs
+
let fg = new FinalizationRegistry(() => {});
let o = {};
fg.register(o, o);