blob: 7a659f54796f7b2c0c225ce1e08f397c7c518a6b [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-set.prototype.forEach
description: >
Set.prototype.forEach ( callbackfn [ , thisArg ] )
...
4. If IsCallable(callbackfn) is false, throw a TypeError exception.
...
Passing `number` as callback
---*/
var s = new Set([1]);
assert.throws(TypeError, function() {
s.forEach(0);
});