Sign in
webkit
/
WebKit
/
a9c91ce2c5aea1dcbb1791839037fd37c48643d1
/
.
/
JSTests
/
stress
/
tagged-template-call-resolve.js
blob: b8853ee585f2f97b257f386be4b0ddc304e6e3e9 [
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
();