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