| 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-unicode | |
| 6 | |
| 7 var num = 5; | 5 var num = 5; |
| 8 var str = "str"; | 6 var str = "str"; |
| 9 function fn() { return "result"; } | 7 function fn() { return "result"; } |
| 10 var obj = { | 8 var obj = { |
| 11 num: num, | 9 num: num, |
| 12 str: str, | 10 str: str, |
| 13 fn: function() { return "result"; } | 11 fn: function() { return "result"; } |
| 14 }; | 12 }; |
| 15 | 13 |
| 16 (function testBasicExpressions() { | 14 (function testBasicExpressions() { |
| (...skipping 675 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 692 assertEquals("-1-2-3-", tag`-${subs[0]}-${subs[1]}-${subs[2]}-`); | 690 assertEquals("-1-2-3-", tag`-${subs[0]}-${subs[1]}-${subs[2]}-`); |
| 693 assertArrayEquals(["get0", "get1", "get2"], log); | 691 assertArrayEquals(["get0", "get1", "get2"], log); |
| 694 assertArrayEquals([1, 2, 3], tagged); | 692 assertArrayEquals([1, 2, 3], tagged); |
| 695 | 693 |
| 696 tagged.length = 0; | 694 tagged.length = 0; |
| 697 log.length = 0; | 695 log.length = 0; |
| 698 assertEquals("-1-", tag`-${subs[0]}-`); | 696 assertEquals("-1-", tag`-${subs[0]}-`); |
| 699 assertArrayEquals(["get0"], log); | 697 assertArrayEquals(["get0"], log); |
| 700 assertArrayEquals([1], tagged); | 698 assertArrayEquals([1], tagged); |
| 701 })(); | 699 })(); |
| OLD | NEW |