blob: e317a2c9ceca1d9f6980d8f1f8846550f6b79225 [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.
/*---
es6id: 23.2.3.7
description: >
Set.prototype.has ( value )
...
5. Repeat for each e that is an element of entries,
a. If e is not empty and SameValueZero(e, value) is true, return true.
...
---*/
var s = new Set();
s.add(undefined)
assert.sameValue(s.has(undefined), true, "`s.has(undefined)` returns `true`");