Sign in
webkit
/
WebKit
/
63c63479e42d5d7cd9e5c20fa3c0adb62aed122e
/
.
/
JSTests
/
stress
/
comma-value-func-call-resolve.js
blob: 25731e3aad956cb7e98ce259d3f3048bc9fe826f [
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
=
(
0
,
x
)(
x
=
1
);
shouldBe
(
x
,
1
);
shouldBe
(
ok
.
foo
,
42
);
}
fn
();