Sign in
webkit
/
WebKit
/
4ba7fe936ef6ae9d62102c8eed5d38ba3f6d5cc4
/
.
/
JSTests
/
es6
/
WeakMap_basic_functionality.js
blob: 0ac6e5effafbc3318f7265e91a3b6fd05a3d4a8b [
file
] [
log
] [
blame
]
function
test
()
{
var
key
=
{};
var
weakmap
=
new
WeakMap
();
weakmap
.
set
(
key
,
123
);
return
weakmap
.
has
(
key
)
&&
weakmap
.
get
(
key
)
===
123
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);