Sign in
webkit
/
WebKit
/
84f33502937aafb6ce5356edb4e15b2b5212e0f3
/
.
/
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"
);