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