cleanupsome-optional.js 550 Bytes
Newer Older
1 2 3 4 5 6 7
// Copyright 2018 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

// FinalizationRegistry#cleanupSome is normative optional and has its own
8
// flag. Test that it's not present.
9 10 11 12 13

assertEquals(undefined, Object.getOwnPropertyDescriptor(
  FinalizationRegistry.prototype, "cleanupSome"));
assertEquals(undefined, FinalizationRegistry.prototype.cleanupSome);
assertFalse('cleanupSome' in FinalizationRegistry.prototype);