summaryrefslogtreecommitdiff
path: root/test/built-ins/Set/prototype/forEach/returns-undefined.js
blob: b3e1b02c3998dd2aadec0ec3d4bd9c40fdc97d50 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright (C) 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 23.2.3.6
description: >
    Set.prototype.forEach ( callbackfn [ , thisArg ] )

    ...
    8. Return undefined.

---*/

var s = new Set([1]);

assert.sameValue(
    s.forEach(function() {}),
    undefined,
    "`s.forEach(function() {})` returns `undefined`"
);