Sign in
webkit
/
WebKit
/
437f2c5aff768557a26b18335a7cb15e0dbc5120
/
.
/
JSTests
/
es6
/
Set_Set.prototype.size.js
blob: 8b069194b77f913973700ccfa9323f0782265da8 [
file
] [
log
] [
blame
]
function
test
()
{
var
obj
=
{};
var
set
=
new
Set
();
set
.
add
(
123
);
set
.
add
(
123
);
set
.
add
(
456
);
return
set
.
size
===
2
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);