| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // Flags: --harmony-templates --harmony-unicode | 5 // Flags: --harmony-unicode |
| 6 | 6 |
| 7 var num = 5; | 7 var num = 5; |
| 8 var str = "str"; | 8 var str = "str"; |
| 9 function fn() { return "result"; } | 9 function fn() { return "result"; } |
| 10 var obj = { | 10 var obj = { |
| 11 num: num, | 11 num: num, |
| 12 str: str, | 12 str: str, |
| 13 fn: function() { return "result"; } | 13 fn: function() { return "result"; } |
| 14 }; | 14 }; |
| 15 | 15 |
| (...skipping 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 579 raw.push("raw;" + text); | 579 raw.push("raw;" + text); |
| 580 return text; | 580 return text; |
| 581 } | 581 } |
| 582 assertEquals("test3", tag`test1``test2``test3`); | 582 assertEquals("test3", tag`test1``test2``test3`); |
| 583 assertEquals([ | 583 assertEquals([ |
| 584 "tag;test1", | 584 "tag;test1", |
| 585 "tag;test2", | 585 "tag;test2", |
| 586 "raw;test3" | 586 "raw;test3" |
| 587 ], raw); | 587 ], raw); |
| 588 })(); | 588 })(); |
| OLD | NEW |