Files
babel/test/fixtures/traceur/TemplateLiterals/CommaExpression.js
Sebastian McKenzie 6a35bdb42b add traceur test suite
2015-01-04 19:40:09 +11:00

11 lines
253 B
JavaScript

assert.equal('24', `${ 1, 2 }${ 3, 4 }`);
assert.equal('6', `${ 5, 6 }`);
function templateLiteralCommaTest(callsite, x, y) {
assert.equal(2, x);
assert.equal(4, y);
return x + y;
}
assert.equal(6, templateLiteralCommaTest`${ 1, 2 }${ 3, 4 }`);