Sign in
webkit
/
WebKit
/
7e879361fb932be61b4de77d5f6669f663c67d9c
/
.
/
JSTests
/
es6
/
template_strings_toString_conversion.js
blob: 8dddb6243f23b2de6a5ff84caa236c8f5015a250 [
file
] [
log
] [
blame
]
function
test
()
{
var
a
=
{
toString
:
function
()
{
return
"foo"
;
},
valueOf
:
function
()
{
return
"bar"
;
},
};
return
`
$
{
a
}`
===
"foo"
;
}
if
(!
test
())
throw
new
Error
(
"Test failed"
);