blob: 907fb651f702370056f6db5bd1dbd59f4a13f9d2 [file] [log] [blame]
// 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);