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

Side by Side Diff: src/messages.js

Issue 1115263004: [strong] Check arity of functions (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 7 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/ia32/builtins-ia32.cc ('k') | src/mips/builtins-mips.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 // ------------------------------------------------------------------- 5 // -------------------------------------------------------------------
6 6
7 var $errorToString; 7 var $errorToString;
8 var $formatMessage; 8 var $formatMessage;
9 var $getStackTraceLine; 9 var $getStackTraceLine;
10 var $messageGetPositionInLine; 10 var $messageGetPositionInLine;
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 strong_empty: ["In strong mode, empty sub-statements are depr ecated, make them explicit with '{}' instead"], 134 strong_empty: ["In strong mode, empty sub-statements are depr ecated, make them explicit with '{}' instead"],
135 strong_use_before_declaration: ["In strong mode, declaring variable '", "%0", "' before its use is required"], 135 strong_use_before_declaration: ["In strong mode, declaring variable '", "%0", "' before its use is required"],
136 strong_unbound_global: ["In strong mode, using an undeclared global va riable '", "%0", "' is not allowed"], 136 strong_unbound_global: ["In strong mode, using an undeclared global va riable '", "%0", "' is not allowed"],
137 strong_super_call_missing: ["In strong mode, invoking the super constructo r in a subclass is required"], 137 strong_super_call_missing: ["In strong mode, invoking the super constructo r in a subclass is required"],
138 strong_super_call_duplicate: ["In strong mode, invoking the super constructo r multiple times is deprecated"], 138 strong_super_call_duplicate: ["In strong mode, invoking the super constructo r multiple times is deprecated"],
139 strong_super_call_misplaced: ["In strong mode, the super constructor must be invoked before any assignment to 'this'"], 139 strong_super_call_misplaced: ["In strong mode, the super constructor must be invoked before any assignment to 'this'"],
140 strong_constructor_super: ["In strong mode, 'super' can only be used to i nvoke the super constructor, and cannot be nested inside another statement or ex pression"], 140 strong_constructor_super: ["In strong mode, 'super' can only be used to i nvoke the super constructor, and cannot be nested inside another statement or ex pression"],
141 strong_constructor_this: ["In strong mode, 'this' can only be used to in itialize properties, and cannot be nested inside another statement or expression "], 141 strong_constructor_this: ["In strong mode, 'this' can only be used to in itialize properties, and cannot be nested inside another statement or expression "],
142 strong_constructor_return_value: ["In strong mode, returning a value from a co nstructor is deprecated"], 142 strong_constructor_return_value: ["In strong mode, returning a value from a co nstructor is deprecated"],
143 strong_constructor_return_misplaced: ["In strong mode, returning from a constr uctor before its super constructor invocation or all assignments to 'this' is de precated"], 143 strong_constructor_return_misplaced: ["In strong mode, returning from a constr uctor before its super constructor invocation or all assignments to 'this' is de precated"],
144 strong_arity: ["In strong mode, calling a function with too f ew arguments is deprecated"],
144 sloppy_lexical: ["Block-scoped declarations (let, const, functi on, class) not yet supported outside strict mode"], 145 sloppy_lexical: ["Block-scoped declarations (let, const, functi on, class) not yet supported outside strict mode"],
145 malformed_arrow_function_parameter_list: ["Malformed arrow function parameter list"], 146 malformed_arrow_function_parameter_list: ["Malformed arrow function parameter list"],
146 cant_prevent_ext_external_array_elements: ["Cannot prevent extension of an obj ect with external array elements"], 147 cant_prevent_ext_external_array_elements: ["Cannot prevent extension of an obj ect with external array elements"],
147 redef_external_array_element: ["Cannot redefine a property of an object with external array elements"], 148 redef_external_array_element: ["Cannot redefine a property of an object with external array elements"],
148 const_assign: ["Assignment to constant variable."], 149 const_assign: ["Assignment to constant variable."],
149 module_export_undefined: ["Export '", "%0", "' is not defined in module" ], 150 module_export_undefined: ["Export '", "%0", "' is not defined in module" ],
150 duplicate_export: ["Duplicate export of '", "%0", "'"], 151 duplicate_export: ["Duplicate export of '", "%0", "'"],
151 unexpected_super: ["'super' keyword unexpected here"], 152 unexpected_super: ["'super' keyword unexpected here"],
152 extends_value_not_a_function: ["Class extends value ", "%0", " is not a funct ion or null"], 153 extends_value_not_a_function: ["Class extends value ", "%0", " is not a funct ion or null"],
153 extends_value_generator: ["Class extends value ", "%0", " may not be a g enerator function"], 154 extends_value_generator: ["Class extends value ", "%0", " may not be a g enerator function"],
(...skipping 1076 matching lines...) Expand 10 before | Expand all | Expand 10 after
1230 return MakeGenericError(GlobalTypeError, type, [arg]); 1231 return MakeGenericError(GlobalTypeError, type, [arg]);
1231 } 1232 }
1232 1233
1233 //Boilerplate for exceptions for stack overflows. Used from 1234 //Boilerplate for exceptions for stack overflows. Used from
1234 //Isolate::StackOverflow(). 1235 //Isolate::StackOverflow().
1235 $stackOverflowBoilerplate = MakeRangeError(kStackOverflow); 1236 $stackOverflowBoilerplate = MakeRangeError(kStackOverflow);
1236 %DefineAccessorPropertyUnchecked($stackOverflowBoilerplate, 'stack', 1237 %DefineAccessorPropertyUnchecked($stackOverflowBoilerplate, 'stack',
1237 StackTraceGetter, StackTraceSetter, DONT_ENUM); 1238 StackTraceGetter, StackTraceSetter, DONT_ENUM);
1238 1239
1239 })(); 1240 })();
OLDNEW
« no previous file with comments | « src/ia32/builtins-ia32.cc ('k') | src/mips/builtins-mips.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698