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

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: cleanup 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
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 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 strong_empty: ["In strong mode, empty sub-statements are depr ecated, make them explicit with '{}' instead"], 175 strong_empty: ["In strong mode, empty sub-statements are depr ecated, make them explicit with '{}' instead"],
176 strong_use_before_declaration: ["In strong mode, declaring variable '", "%0", "' before its use is required"], 176 strong_use_before_declaration: ["In strong mode, declaring variable '", "%0", "' before its use is required"],
177 strong_unbound_global: ["In strong mode, using an undeclared global va riable '", "%0", "' is not allowed"], 177 strong_unbound_global: ["In strong mode, using an undeclared global va riable '", "%0", "' is not allowed"],
178 strong_super_call_missing: ["In strong mode, invoking the super constructo r in a subclass is required"], 178 strong_super_call_missing: ["In strong mode, invoking the super constructo r in a subclass is required"],
179 strong_super_call_duplicate: ["In strong mode, invoking the super constructo r multiple times is deprecated"], 179 strong_super_call_duplicate: ["In strong mode, invoking the super constructo r multiple times is deprecated"],
180 strong_super_call_misplaced: ["In strong mode, the super constructor must be invoked before any assignment to 'this'"], 180 strong_super_call_misplaced: ["In strong mode, the super constructor must be invoked before any assignment to 'this'"],
181 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"], 181 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"],
182 strong_constructor_this: ["In strong mode, 'this' can only be used to in itialize properties, and cannot be nested inside another statement or expression "], 182 strong_constructor_this: ["In strong mode, 'this' can only be used to in itialize properties, and cannot be nested inside another statement or expression "],
183 strong_constructor_return_value: ["In strong mode, returning a value from a co nstructor is deprecated"], 183 strong_constructor_return_value: ["In strong mode, returning a value from a co nstructor is deprecated"],
184 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"], 184 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"],
185 strong_mode_too_few_arguments: ["In strong mode, calling a function with too f ew arguments is deprecated"],
rossberg 2015/05/05 14:26:19 Nit: strong_arity
arv (Not doing code reviews) 2015/05/05 16:46:29 Done.
185 sloppy_lexical: ["Block-scoped declarations (let, const, functi on, class) not yet supported outside strict mode"], 186 sloppy_lexical: ["Block-scoped declarations (let, const, functi on, class) not yet supported outside strict mode"],
186 malformed_arrow_function_parameter_list: ["Malformed arrow function parameter list"], 187 malformed_arrow_function_parameter_list: ["Malformed arrow function parameter list"],
187 cant_prevent_ext_external_array_elements: ["Cannot prevent extension of an obj ect with external array elements"], 188 cant_prevent_ext_external_array_elements: ["Cannot prevent extension of an obj ect with external array elements"],
188 redef_external_array_element: ["Cannot redefine a property of an object with external array elements"], 189 redef_external_array_element: ["Cannot redefine a property of an object with external array elements"],
189 const_assign: ["Assignment to constant variable."], 190 const_assign: ["Assignment to constant variable."],
190 module_export_undefined: ["Export '", "%0", "' is not defined in module" ], 191 module_export_undefined: ["Export '", "%0", "' is not defined in module" ],
191 duplicate_export: ["Duplicate export of '", "%0", "'"], 192 duplicate_export: ["Duplicate export of '", "%0", "'"],
192 unexpected_super: ["'super' keyword unexpected here"], 193 unexpected_super: ["'super' keyword unexpected here"],
193 extends_value_not_a_function: ["Class extends value ", "%0", " is not a funct ion or null"], 194 extends_value_not_a_function: ["Class extends value ", "%0", " is not a funct ion or null"],
194 extends_value_generator: ["Class extends value ", "%0", " may not be a g enerator function"], 195 extends_value_generator: ["Class extends value ", "%0", " may not be a g enerator function"],
(...skipping 1102 matching lines...) Expand 10 before | Expand all | Expand 10 after
1297 return MakeGenericError(GlobalTypeError, type, [arg]); 1298 return MakeGenericError(GlobalTypeError, type, [arg]);
1298 } 1299 }
1299 1300
1300 //Boilerplate for exceptions for stack overflows. Used from 1301 //Boilerplate for exceptions for stack overflows. Used from
1301 //Isolate::StackOverflow(). 1302 //Isolate::StackOverflow().
1302 $stackOverflowBoilerplate = MakeRangeError(kStackOverflow); 1303 $stackOverflowBoilerplate = MakeRangeError(kStackOverflow);
1303 %DefineAccessorPropertyUnchecked($stackOverflowBoilerplate, 'stack', 1304 %DefineAccessorPropertyUnchecked($stackOverflowBoilerplate, 'stack',
1304 StackTraceGetter, StackTraceSetter, DONT_ENUM); 1305 StackTraceGetter, StackTraceSetter, DONT_ENUM);
1305 1306
1306 })(); 1307 })();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698