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

Side by Side Diff: src/messages.js

Issue 1118273004: Migrate error messages, part 8. (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/messages.h ('k') | src/promise.js » ('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 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
78 not_defined: ["%0", " is not defined"], 78 not_defined: ["%0", " is not defined"],
79 non_method: ["'super' is referenced from non-method"], 79 non_method: ["'super' is referenced from non-method"],
80 unsupported_super: ["Unsupported reference to 'super'"], 80 unsupported_super: ["Unsupported reference to 'super'"],
81 non_object_property_load: ["Cannot read property '", "%0", "' of ", "%1"] , 81 non_object_property_load: ["Cannot read property '", "%0", "' of ", "%1"] ,
82 non_object_property_store: ["Cannot set property '", "%0", "' of ", "%1"], 82 non_object_property_store: ["Cannot set property '", "%0", "' of ", "%1"],
83 illegal_invocation: ["Illegal invocation"], 83 illegal_invocation: ["Illegal invocation"],
84 no_setter_in_callback: ["Cannot set property ", "%0", " of ", "%1", " which has only a getter"], 84 no_setter_in_callback: ["Cannot set property ", "%0", " of ", "%1", " which has only a getter"],
85 value_and_accessor: ["Invalid property. A property cannot both hav e accessors and be writable or have a value, ", "%0"], 85 value_and_accessor: ["Invalid property. A property cannot both hav e accessors and be writable or have a value, ", "%0"],
86 proto_object_or_null: ["Object prototype may only be an Object or nul l: ", "%0"], 86 proto_object_or_null: ["Object prototype may only be an Object or nul l: ", "%0"],
87 non_extensible_proto: ["%0", " is not extensible"], 87 non_extensible_proto: ["%0", " is not extensible"],
88 handler_non_object: ["Proxy.", "%0", " called with non-object as ha ndler"],
89 proto_non_object: ["Proxy.", "%0", " called with non-object as pr ototype"],
90 trap_function_expected: ["Proxy.", "%0", " called with non-function for '", "%1", "' trap"],
91 proxy_repeated_prop_name: ["Trap '", "%1", "' returned repeated property name '", "%2", "'"],
92 invalid_weakmap_key: ["Invalid value used as weak map key"], 88 invalid_weakmap_key: ["Invalid value used as weak map key"],
93 invalid_weakset_value: ["Invalid value used in weak set"], 89 invalid_weakset_value: ["Invalid value used in weak set"],
94 not_date_object: ["this is not a Date object."], 90 not_date_object: ["this is not a Date object."],
95 invalid_argument: ["invalid_argument"],
96 data_view_not_array_buffer: ["First argument to DataView constructor must b e an ArrayBuffer"],
97 not_a_symbol: ["%0", " is not a symbol"], 91 not_a_symbol: ["%0", " is not a symbol"],
98 not_a_promise: ["%0", " is not a promise"],
99 resolver_not_a_function: ["Promise resolver ", "%0", " is not a function "],
100 promise_cyclic: ["Chaining cycle detected for promise ", "%0"],
101 // RangeError
102 invalid_array_length: ["Invalid array length"],
103 invalid_array_buffer_length: ["Invalid array buffer length"],
104 invalid_string_length: ["Invalid string length"],
105 invalid_typed_array_offset: ["Start offset is too large:"],
106 invalid_typed_array_length: ["Invalid typed array length"],
107 invalid_typed_array_alignment: ["%0", " of ", "%1", " should be a multiple of ", "%2"],
108 typed_array_set_source_too_large:
109 ["Source is too large"],
110 typed_array_set_negative_offset:
111 ["Start offset is negative"],
112 invalid_data_view_offset: ["Start offset is outside the bounds of the buf fer"],
113 invalid_data_view_length: ["Invalid data view length"],
114 invalid_data_view_accessor_offset:
115 ["Offset is outside the bounds of the DataView" ],
116 // ReferenceError 92 // ReferenceError
117 invalid_lhs_in_assignment: ["Invalid left-hand side in assignment"], 93 invalid_lhs_in_assignment: ["Invalid left-hand side in assignment"],
118 invalid_lhs_in_for: ["Invalid left-hand side in for-loop"], 94 invalid_lhs_in_for: ["Invalid left-hand side in for-loop"],
119 invalid_lhs_in_postfix_op: ["Invalid left-hand side expression in postfix operation"], 95 invalid_lhs_in_postfix_op: ["Invalid left-hand side expression in postfix operation"],
120 invalid_lhs_in_prefix_op: ["Invalid left-hand side expression in prefix o peration"], 96 invalid_lhs_in_prefix_op: ["Invalid left-hand side expression in prefix o peration"],
121 // SyntaxError 97 // SyntaxError
122 not_isvar: ["builtin %IS_VAR: not a variable"], 98 not_isvar: ["builtin %IS_VAR: not a variable"],
123 single_function_literal: ["Single function literal required"], 99 single_function_literal: ["Single function literal required"],
124 invalid_regexp_flags: ["Invalid flags supplied to RegExp constructor '", "%0", "'"], 100 invalid_regexp_flags: ["Invalid flags supplied to RegExp constructor '", "%0", "'"],
125 invalid_regexp: ["Invalid RegExp pattern /", "%0", "/"], 101 invalid_regexp: ["Invalid RegExp pattern /", "%0", "/"],
(...skipping 1157 matching lines...) Expand 10 before | Expand all | Expand 10 after
1283 return MakeGenericError(GlobalTypeError, type, [arg]); 1259 return MakeGenericError(GlobalTypeError, type, [arg]);
1284 } 1260 }
1285 1261
1286 //Boilerplate for exceptions for stack overflows. Used from 1262 //Boilerplate for exceptions for stack overflows. Used from
1287 //Isolate::StackOverflow(). 1263 //Isolate::StackOverflow().
1288 $stackOverflowBoilerplate = MakeRangeError(kStackOverflow); 1264 $stackOverflowBoilerplate = MakeRangeError(kStackOverflow);
1289 %DefineAccessorPropertyUnchecked($stackOverflowBoilerplate, 'stack', 1265 %DefineAccessorPropertyUnchecked($stackOverflowBoilerplate, 'stack',
1290 StackTraceGetter, StackTraceSetter, DONT_ENUM); 1266 StackTraceGetter, StackTraceSetter, DONT_ENUM);
1291 1267
1292 })(); 1268 })();
OLDNEW
« no previous file with comments | « src/messages.h ('k') | src/promise.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698