Sign in
webkit
/
WebKit
/
edf247c81f20089de52cb2decac360f8a7393c57
/
.
/
JSTests
/
es6
/
WeakSet_WeakSet.prototype.add_returns_this.js
blob: 3553ac599b6a007f9fb1d109f20459648e4b3939 [
file
] [
log
] [
blame
]
function
test
()
{
var
weakset
=
new
WeakSet
();
var
obj
=
{};
return
weakset
.
add
(
obj
)
===
weakset
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);