 Chromium Code Reviews
 Chromium Code Reviews Issue 1141223002:
  [parser] report SyntaxError if rest parameter used in Setter MethodDefinition  (Closed) 
  Base URL: https://chromium.googlesource.com/v8/v8.git@master
    
  
    Issue 1141223002:
  [parser] report SyntaxError if rest parameter used in Setter MethodDefinition  (Closed) 
  Base URL: https://chromium.googlesource.com/v8/v8.git@master| OLD | NEW | 
|---|---|
| 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 Loading... | |
| 134 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"], | 134 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"], | 
| 135 sloppy_lexical: ["Block-scoped declarations (let, const, functi on, class) not yet supported outside strict mode"], | 135 sloppy_lexical: ["Block-scoped declarations (let, const, functi on, class) not yet supported outside strict mode"], | 
| 136 malformed_arrow_function_parameter_list: ["Malformed arrow function parameter list"], | 136 malformed_arrow_function_parameter_list: ["Malformed arrow function parameter list"], | 
| 137 module_export_undefined: ["Export '", "%0", "' is not defined in module" ], | 137 module_export_undefined: ["Export '", "%0", "' is not defined in module" ], | 
| 138 duplicate_export: ["Duplicate export of '", "%0", "'"], | 138 duplicate_export: ["Duplicate export of '", "%0", "'"], | 
| 139 unexpected_super: ["'super' keyword unexpected here"], | 139 unexpected_super: ["'super' keyword unexpected here"], | 
| 140 duplicate_constructor: ["A class may only have one constructor"], | 140 duplicate_constructor: ["A class may only have one constructor"], | 
| 141 super_constructor_call: ["A 'super' constructor call may only appear as the first statement of a function, and its arguments may not access 'this'. Oth er forms are not yet supported."], | 141 super_constructor_call: ["A 'super' constructor call may only appear as the first statement of a function, and its arguments may not access 'this'. Oth er forms are not yet supported."], | 
| 142 duplicate_proto: ["Duplicate __proto__ fields are not allowed in object literals"], | 142 duplicate_proto: ["Duplicate __proto__ fields are not allowed in object literals"], | 
| 143 param_after_rest: ["Rest parameter must be last formal parameter" ], | 143 param_after_rest: ["Rest parameter must be last formal parameter" ], | 
| 144 setter_rest_param: ["Setter function argument must not be a rest p arameter"], | |
| 
arv (Not doing code reviews)
2015/05/15 13:55:56
Can you use messages.h instead since Yang is in th
 
caitp (gmail)
2015/05/15 14:01:27
I'd like to, but it's not obvious how to make the
 | |
| 144 derived_constructor_return: ["Derived constructors may only return object o r undefined"], | 145 derived_constructor_return: ["Derived constructors may only return object o r undefined"], | 
| 145 for_in_loop_initializer: ["for-in loop variable declaration may not have an initializer."], | 146 for_in_loop_initializer: ["for-in loop variable declaration may not have an initializer."], | 
| 146 for_of_loop_initializer: ["for-of loop variable declaration may not have an initializer."], | 147 for_of_loop_initializer: ["for-of loop variable declaration may not have an initializer."], | 
| 147 for_inof_loop_multi_bindings: ["Invalid left-hand side in ", "%0", " loop: Mu st have a single binding."], | 148 for_inof_loop_multi_bindings: ["Invalid left-hand side in ", "%0", " loop: Mu st have a single binding."], | 
| 148 bad_getter_arity: ["Getter must not have any formal parameters."] , | 149 bad_getter_arity: ["Getter must not have any formal parameters."] , | 
| 149 bad_setter_arity: ["Setter must have exactly one formal parameter ."], | 150 bad_setter_arity: ["Setter must have exactly one formal parameter ."], | 
| 150 this_formal_parameter: ["'this' is not a valid formal parameter name"] , | 151 this_formal_parameter: ["'this' is not a valid formal parameter name"] , | 
| 151 duplicate_arrow_function_formal_parameter: ["Arrow function may not have dupli cate parameter names"] | 152 duplicate_arrow_function_formal_parameter: ["Arrow function may not have dupli cate parameter names"] | 
| 152 }; | 153 }; | 
| 153 | 154 | 
| (...skipping 1061 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1215 return MakeGenericError(GlobalTypeError, type, [arg]); | 1216 return MakeGenericError(GlobalTypeError, type, [arg]); | 
| 1216 } | 1217 } | 
| 1217 | 1218 | 
| 1218 //Boilerplate for exceptions for stack overflows. Used from | 1219 //Boilerplate for exceptions for stack overflows. Used from | 
| 1219 //Isolate::StackOverflow(). | 1220 //Isolate::StackOverflow(). | 
| 1220 $stackOverflowBoilerplate = MakeRangeError(kStackOverflow); | 1221 $stackOverflowBoilerplate = MakeRangeError(kStackOverflow); | 
| 1221 %DefineAccessorPropertyUnchecked($stackOverflowBoilerplate, 'stack', | 1222 %DefineAccessorPropertyUnchecked($stackOverflowBoilerplate, 'stack', | 
| 1222 StackTraceGetter, StackTraceSetter, DONT_ENUM); | 1223 StackTraceGetter, StackTraceSetter, DONT_ENUM); | 
| 1223 | 1224 | 
| 1224 }) | 1225 }) | 
| OLD | NEW |