Sign in
webkit
/
WebKit
/
f208291ebb5233b8d92ab682a30d20b4b4d23e1e
/
.
/
JSTests
/
stress
/
normalize-map-key-constant-folding.js
blob: e30437abba240ced279b95ac698ba26bb80aade8 [
file
] [
log
] [
blame
]
function
test
(
i
)
{
var
map
=
new
Map
();
var
key
=
"Hello"
;
if
(
i
&
0x1
)
key
=
42
;
map
.
set
(
key
,
42
);
return
map
;
}
noInline
(
test
);
for
(
var
i
=
0
;
i
<
1e6
;
++
i
)
test
(
i
);