Sign in
webkit
/
WebKit
/
d4f65fcc3c5c5e5acf4da0072f42bc48017306dc
/
.
/
LayoutTests
/
js
/
script-tests
/
dfg-use-function-as-variable.js
blob: a9e8caddf67ebd0e127f535c167e5846e53475f6 [
file
] [
log
] [
blame
]
description
(
"Tests what happens when you use a function as a variable."
);
function
run_tests
()
{
function
x
()
{
return
3
;
}
var
x
=
13
;
return
x
+
x
;
}
for
(
var
i
=
0
;
i
<
100
;
++
i
)
shouldBe
(
"run_tests()"
,
"26"
);