| OLD | NEW |
| 1 // Copyright 2015 the V8 project authors. All rights reserved. | 1 // Copyright 2015 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-regexps | |
| 6 | |
| 7 var r1 = /abc/gi; | 5 var r1 = /abc/gi; |
| 8 assertEquals("abc", r1.source); | 6 assertEquals("abc", r1.source); |
| 9 assertTrue(r1.global); | 7 assertTrue(r1.global); |
| 10 assertTrue(r1.ignoreCase); | 8 assertTrue(r1.ignoreCase); |
| 11 assertFalse(r1.multiline); | 9 assertFalse(r1.multiline); |
| 12 assertFalse(r1.sticky); | 10 assertFalse(r1.sticky); |
| 13 assertFalse(r1.unicode); | 11 assertFalse(r1.unicode); |
| 14 | 12 |
| 15 // Internal slot of prototype is not read. | 13 // Internal slot of prototype is not read. |
| 16 var r2 = { __proto__: r1 }; | 14 var r2 = { __proto__: r1 }; |
| (...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 112 }, | 110 }, |
| 113 get unicode() { | 111 get unicode() { |
| 114 map.u = counter++; | 112 map.u = counter++; |
| 115 }, | 113 }, |
| 116 get sticky() { | 114 get sticky() { |
| 117 map.y = counter++; | 115 map.y = counter++; |
| 118 } | 116 } |
| 119 }; | 117 }; |
| 120 testGenericFlags(object); | 118 testGenericFlags(object); |
| 121 assertEquals({ g: 0, i: 1, m: 2, u: 3, y: 4 }, map); | 119 assertEquals({ g: 0, i: 1, m: 2, u: 3, y: 4 }, map); |
| OLD | NEW |