blob: 496e33ee1ce6a6981f654c2da290b8d436bb977c [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.has
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("")
assert.sameValue(s.has(""), true, "`s.has('')` returns `true`");