summaryrefslogtreecommitdiffstats
path: root/js/src/tests/test262/built-ins/Set/prototype/delete/returns-false-when-delete-is-noop.js
blob: 8a8e69e8862f2184e08d12a69516adaf010f7097 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
// 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-set.prototype.delete
description: >
    Set.prototype.delete ( value )

    ...
    6. Return false.

---*/

var s = new Set();

assert.sameValue(s.delete(1), false, "`s.delete(1)` returns `false`");

reportCompare(0, 0);