Sign in
webkit
/
WebKit
/
19e52add6f30e26c5fff78e2223e0618385a5a3d
/
.
/
JSTests
/
stress
/
resolve-func-call-resolve.js
blob: f7a500d15c7adb06e1ed8bbcb359fc872fd683ff [
file
] [
log
] [
blame
]
function
shouldBe
(
actual
,
expected
)
{
if
(
actual
!==
expected
)
throw
new
Error
(
'bad value: '
+
actual
);
}
function
fn
()
{
var
ok
=
{};
var
x
=
function
()
{
ok
.
foo
=
42
;
};
var
result
=
x
(
x
=
1
);
shouldBe
(
x
,
1
);
shouldBe
(
ok
.
foo
,
42
);
}
fn
();