Sign in
webkit
/
WebKit
/
38af2d11a53891d36db2adc946c621e143cf63f2
/
.
/
JSTests
/
microbenchmarks
/
generator-function-create.js
blob: ae4eb9eec6827e1e42686486fee0f5faad2ea240 [
file
] [
log
] [
blame
]
function
createGeneratorFunction
()
{
function
*
gen
()
{
yield
20
;
yield
30
;
}
return
gen
;
}
function
test
()
{
for
(
var
i
=
0
;
i
<
500
;
++
i
)
createGeneratorFunction
();
}
noInline
(
test
);
for
(
var
i
=
0
;
i
<
1e4
;
++
i
)
test
();