Sign in
webkit
/
WebKit
/
2ab9dfaee5c791e0d7b2c0893a55ced8677e2e2a
/
.
/
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"
);