blob: f3f2d3b2fde18dfced0047494bbeeb25eaf33a33 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
// 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-map.prototype.forEach
description: >
Returns undefined.
info: |
Map.prototype.forEach ( callbackfn [ , thisArg ] )
...
8. Return undefined.
---*/
var map = new Map();
var result = map.forEach(function() {
return true;
});
assert.sameValue(result, undefined, 'Empty map#forEach returns undefined');
map.set(1, 1);
result = map.forEach(function() {
return true;
});
assert.sameValue(result, undefined, 'map#forEach returns undefined');
reportCompare(0, 0);
|