Sign in
webkit
/
WebKit
/
3171213d84ddc1cb3289622b38ea4b8b7d089653
/
.
/
JSTests
/
es6
/
template_strings_basic_functionality.js
blob: 865810a0131b5c740c4e2c4900895c1b7b4a1d77 [
file
] [
log
] [
blame
]
function
test
()
{
var
a
=
"ba"
,
b
=
"QUX"
;
return
`
foo bar
$
{
a
+
"z"
}
$
{
b
.
toLowerCase
()}`
===
"foo bar\nbaz qux"
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);