OLD | NEW |
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. | 1 // Copyright 2006-2008 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 // The infrastructure used for (localized) message reporting in V8. | 5 // The infrastructure used for (localized) message reporting in V8. |
6 // | 6 // |
7 // Note: there's a big unresolved issue about ownership of the data | 7 // Note: there's a big unresolved issue about ownership of the data |
8 // structures used by this framework. | 8 // structures used by this framework. |
9 | 9 |
10 #ifndef V8_MESSAGES_H_ | 10 #ifndef V8_MESSAGES_H_ |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
319 T(MalformedArrowFunParamList, "Malformed arrow function parameter list") \ | 319 T(MalformedArrowFunParamList, "Malformed arrow function parameter list") \ |
320 T(MalformedRegExp, "Invalid regular expression: /%/: %") \ | 320 T(MalformedRegExp, "Invalid regular expression: /%/: %") \ |
321 T(MalformedRegExpFlags, "Invalid regular expression flags") \ | 321 T(MalformedRegExpFlags, "Invalid regular expression flags") \ |
322 T(ModuleExportUndefined, "Export '%' is not defined in module") \ | 322 T(ModuleExportUndefined, "Export '%' is not defined in module") \ |
323 T(MultipleDefaultsInSwitch, \ | 323 T(MultipleDefaultsInSwitch, \ |
324 "More than one default clause in switch statement") \ | 324 "More than one default clause in switch statement") \ |
325 T(NewlineAfterThrow, "Illegal newline after throw") \ | 325 T(NewlineAfterThrow, "Illegal newline after throw") \ |
326 T(NoCatchOrFinally, "Missing catch or finally after try") \ | 326 T(NoCatchOrFinally, "Missing catch or finally after try") \ |
327 T(NotIsvar, "builtin %%IS_VAR: not a variable") \ | 327 T(NotIsvar, "builtin %%IS_VAR: not a variable") \ |
328 T(ParamAfterRest, "Rest parameter must be last formal parameter") \ | 328 T(ParamAfterRest, "Rest parameter must be last formal parameter") \ |
329 T(PushPastSafeLength, \ | |
330 "Pushing % elements on an array-like of length % " \ | |
331 "is disallowed, as the total surpasses 2**53-1") \ | |
332 T(BadSetterRestParameter, \ | 329 T(BadSetterRestParameter, \ |
333 "Setter function argument must not be a rest parameter") \ | 330 "Setter function argument must not be a rest parameter") \ |
334 T(ParamDupe, "Duplicate parameter name not allowed in this context") \ | 331 T(ParamDupe, "Duplicate parameter name not allowed in this context") \ |
335 T(ParenthesisInArgString, "Function arg string contains parenthesis") \ | 332 T(ParenthesisInArgString, "Function arg string contains parenthesis") \ |
336 T(SingleFunctionLiteral, "Single function literal required") \ | 333 T(SingleFunctionLiteral, "Single function literal required") \ |
337 T(SloppyLexical, \ | 334 T(SloppyLexical, \ |
338 "Block-scoped declarations (let, const, function, class) not yet " \ | 335 "Block-scoped declarations (let, const, function, class) not yet " \ |
339 "supported outside strict mode") \ | 336 "supported outside strict mode") \ |
340 T(StrictDelete, "Delete of an unqualified identifier in strict mode.") \ | 337 T(StrictDelete, "Delete of an unqualified identifier in strict mode.") \ |
341 T(StrictEvalArguments, "Unexpected eval or arguments in strict mode") \ | 338 T(StrictEvalArguments, "Unexpected eval or arguments in strict mode") \ |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
497 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty( | 494 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty( |
498 Isolate* isolate, LookupIterator* property_lookup, | 495 Isolate* isolate, LookupIterator* property_lookup, |
499 Handle<String> default_value); | 496 Handle<String> default_value); |
500 | 497 |
501 List<Handle<JSObject> > visited_; | 498 List<Handle<JSObject> > visited_; |
502 }; | 499 }; |
503 } // namespace internal | 500 } // namespace internal |
504 } // namespace v8 | 501 } // namespace v8 |
505 | 502 |
506 #endif // V8_MESSAGES_H_ | 503 #endif // V8_MESSAGES_H_ |
OLD | NEW |