// Copyright (C) 2015 the V8 project authors. All rights reserved. | |
// This code is governed by the BSD license found in the LICENSE file. | |
/*--- | |
esid: sec-weakmap.prototype.delete | |
description: > | |
Return false if entry is not in the WeakMap. | |
info: | | |
WeakMap.prototype.delete ( value ) | |
... | |
7. Return false. | |
---*/ | |
var map = new WeakMap(); | |
var foo = {}; | |
var bar = {}; | |
map.set(foo, 42); | |
assert.sameValue(map.delete(bar), false); |