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