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