c33274a441b7d3227f7d3934522bb6441df65559
[platform/framework/web/crosswalk-tizen.git] /
1 /**
2  * @fileoverview The list of feature flags supported by the parser and their default
3  *      settings.
4  * @author Nicholas C. Zakas
5  * @copyright 2015 Fred K. Schott. All rights reserved.
6  * @copyright 2014 Nicholas C. Zakas. All rights reserved.
7  *
8  * Redistribution and use in source and binary forms, with or without
9  * modification, are permitted provided that the following conditions are met:
10  *
11  * * Redistributions of source code must retain the above copyright
12  *   notice, this list of conditions and the following disclaimer.
13  * * Redistributions in binary form must reproduce the above copyright
14  *   notice, this list of conditions and the following disclaimer in the
15  *   documentation and/or other materials provided with the distribution.
16  *
17  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
18  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
19  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
20  * ARE DISCLAIMED. IN NO EVENT SHALL <COPYRIGHT HOLDER> BE LIABLE FOR ANY
21  * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
22  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
23  * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
24  * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26  * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27  */
28
29 "use strict";
30
31 //------------------------------------------------------------------------------
32 // Requirements
33 //------------------------------------------------------------------------------
34
35 // None!
36
37 //------------------------------------------------------------------------------
38 // Public
39 //------------------------------------------------------------------------------
40
41 module.exports = {
42
43     // enable parsing of arrow functions
44     arrowFunctions: false,
45
46     // enable parsing of let and const
47     blockBindings: true,
48
49     // enable parsing of destructured arrays and objects
50     destructuring: false,
51
52     // enable parsing of regex u flag
53     regexUFlag: false,
54
55     // enable parsing of regex y flag
56     regexYFlag: false,
57
58     // enable parsing of template strings
59     templateStrings: false,
60
61     // enable parsing binary literals
62     binaryLiterals: false,
63
64     // enable parsing ES6 octal literals
65     octalLiterals: false,
66
67     // enable parsing unicode code point escape sequences
68     unicodeCodePointEscapes: true,
69
70     // enable parsing of default parameters
71     defaultParams: false,
72
73     // enable parsing of rest parameters
74     restParams: false,
75
76     // enable parsing of for-of statements
77     forOf: false,
78
79     // enable parsing computed object literal properties
80     objectLiteralComputedProperties: false,
81
82     // enable parsing of shorthand object literal methods
83     objectLiteralShorthandMethods: false,
84
85     // enable parsing of shorthand object literal properties
86     objectLiteralShorthandProperties: false,
87
88     // Allow duplicate object literal properties (except '__proto__')
89     objectLiteralDuplicateProperties: false,
90
91     // enable parsing of generators/yield
92     generators: false,
93
94     // support the spread operator
95     spread: false,
96
97     // enable super in functions
98     superInFunctions: false,
99
100     // enable parsing of classes
101     classes: false,
102
103     // enable parsing of modules
104     modules: false,
105
106     // React JSX parsing
107     jsx: false,
108
109     // allow return statement in global scope
110     globalReturn: false
111 };