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