Sign in
webkit
/
WebKit
/
2ab9dfaee5c791e0d7b2c0893a55ced8677e2e2a
/
.
/
JSTests
/
es6
/
Map_constructor_invokes_set.js
blob: 45242d22b7cd836807f20e9463f74363d4ba0d37 [
file
] [
log
] [
blame
]
function
test
()
{
var
passed
=
false
;
var
_set
=
Map
.
prototype
.
set
;
Map
.
prototype
.
set
=
function
(
k
,
v
)
{
passed
=
true
;
};
new
Map
([
[
1
,
2
]
]);
Map
.
prototype
.
set
=
_set
;
return
passed
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);