This returns true in traceur:

```js
function tag(templateObj, ...args) {
        return String.raw({raw: templateObj}, ...args);
}

let content = "world";
console.log(tag`hello\n${content}` === `hello\n${content}`);
```

Looks like problem solved. :)

> On Dec 24, 2014, at 12:44 PM, Brendan Eich <[email protected]> wrote:
> 
> Clever -- treat the cooked values as raw. Should work -- test in Traceur?
> 
> /be
> 
> Glen Huang wrote:
>> On second thought, make it could be just as simple as this?
>> 
>> function tag(templateObj, ..args) {
>>      return String.raw({raw: templateObj}, …args);
>> }

_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss

Reply via email to