Sign in
webkit
/
WebKit
/
4ba7fe936ef6ae9d62102c8eed5d38ba3f6d5cc4
/
.
/
JSTests
/
es6
/
WeakMap_frozen_objects_as_keys.js
blob: cec27d07611cdd7ca39bbfd05f2c527f9fe95268 [
file
] [
log
] [
blame
]
function
test
()
{
var
f
=
Object
.
freeze
({});
var
m
=
new
WeakMap
;
m
.
set
(
f
,
42
);
return
m
.
get
(
f
)
===
42
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);