Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: src/harmony-regexp.js

Issue 1398733002: Move builtin JavaScript sources into own directory. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Also move macros.py file. Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « src/harmony-reflect.js ('k') | src/harmony-sharedarraybuffer.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 (function(global, utils) {
6
7 'use strict';
8
9 %CheckIsBootstrapping();
10
11 // -------------------------------------------------------------------
12 // Imports
13
14 var GlobalRegExp = global.RegExp;
15
16 // -------------------------------------------------------------------
17
18 // ES6 draft 12-06-13, section 21.2.5.3
19 // + https://bugs.ecmascript.org/show_bug.cgi?id=3423
20 function RegExpGetFlags() {
21 if (!IS_SPEC_OBJECT(this)) {
22 throw MakeTypeError(kFlagsGetterNonObject, TO_STRING(this));
23 }
24 var result = '';
25 if (this.global) result += 'g';
26 if (this.ignoreCase) result += 'i';
27 if (this.multiline) result += 'm';
28 if (this.unicode) result += 'u';
29 if (this.sticky) result += 'y';
30 return result;
31 }
32
33 %DefineAccessorPropertyUnchecked(GlobalRegExp.prototype, 'flags',
34 RegExpGetFlags, null, DONT_ENUM);
35 %SetNativeFlag(RegExpGetFlags);
36
37 })
OLDNEW
« no previous file with comments | « src/harmony-reflect.js ('k') | src/harmony-sharedarraybuffer.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698