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 (function(global, utils) { | 5 (function(global, utils) { |
6 | 6 |
7 'use strict'; | 7 'use strict'; |
8 | 8 |
9 %CheckIsBootstrapping(); | 9 %CheckIsBootstrapping(); |
10 | 10 |
(...skipping 17 matching lines...) Expand all Loading... |
28 if (this.unicode) result += 'u'; | 28 if (this.unicode) result += 'u'; |
29 if (this.sticky) result += 'y'; | 29 if (this.sticky) result += 'y'; |
30 return result; | 30 return result; |
31 } | 31 } |
32 | 32 |
33 %DefineAccessorPropertyUnchecked(GlobalRegExp.prototype, 'flags', | 33 %DefineAccessorPropertyUnchecked(GlobalRegExp.prototype, 'flags', |
34 RegExpGetFlags, null, DONT_ENUM); | 34 RegExpGetFlags, null, DONT_ENUM); |
35 %SetNativeFlag(RegExpGetFlags); | 35 %SetNativeFlag(RegExpGetFlags); |
36 | 36 |
37 }) | 37 }) |
OLD | NEW |