Sign in
webkit
/
WebKit
/
49c45f529348e27f11122daecbee33e4fa730919
/
.
/
JSTests
/
es6
/
WeakMap_WeakMap.prototype.set_returns_this.js
blob: c53c06458cbeee44dfc8379f9e34c8dd0bbc1db8 [
file
] [
log
] [
blame
]
function
test
()
{
var
weakmap
=
new
WeakMap
();
var
key
=
{};
return
weakmap
.
set
(
key
,
0
)
===
weakmap
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);