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

Side by Side Diff: src/messages.js

Issue 1116953002: Migrate error messages, part 6. (string.js and date.js) (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/string.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 92 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 observe_notify_non_notifier: ["notify called on non-notifier object"], 103 observe_notify_non_notifier: ["notify called on non-notifier object"],
104 observe_global_proxy: ["%0", " cannot be called on the global proxy o bject"], 104 observe_global_proxy: ["%0", " cannot be called on the global proxy o bject"],
105 not_typed_array: ["this is not a typed array."], 105 not_typed_array: ["this is not a typed array."],
106 invalid_argument: ["invalid_argument"], 106 invalid_argument: ["invalid_argument"],
107 data_view_not_array_buffer: ["First argument to DataView constructor must b e an ArrayBuffer"], 107 data_view_not_array_buffer: ["First argument to DataView constructor must b e an ArrayBuffer"],
108 constructor_not_function: ["Constructor ", "%0", " requires 'new'"], 108 constructor_not_function: ["Constructor ", "%0", " requires 'new'"],
109 not_a_symbol: ["%0", " is not a symbol"], 109 not_a_symbol: ["%0", " is not a symbol"],
110 not_a_promise: ["%0", " is not a promise"], 110 not_a_promise: ["%0", " is not a promise"],
111 resolver_not_a_function: ["Promise resolver ", "%0", " is not a function "], 111 resolver_not_a_function: ["Promise resolver ", "%0", " is not a function "],
112 promise_cyclic: ["Chaining cycle detected for promise ", "%0"], 112 promise_cyclic: ["Chaining cycle detected for promise ", "%0"],
113 first_argument_not_regexp: ["First argument to ", "%0", " must not be a re gular expression"],
114 iterator_result_not_an_object: ["Iterator result ", "%0", " is not an object"] , 113 iterator_result_not_an_object: ["Iterator result ", "%0", " is not an object"] ,
115 iterator_value_not_an_object: ["Iterator value ", "%0", " is not an entry obj ect"], 114 iterator_value_not_an_object: ["Iterator value ", "%0", " is not an entry obj ect"],
116 // RangeError 115 // RangeError
117 invalid_array_length: ["Invalid array length"], 116 invalid_array_length: ["Invalid array length"],
118 invalid_array_buffer_length: ["Invalid array buffer length"], 117 invalid_array_buffer_length: ["Invalid array buffer length"],
119 invalid_string_length: ["Invalid string length"], 118 invalid_string_length: ["Invalid string length"],
120 invalid_typed_array_offset: ["Start offset is too large:"], 119 invalid_typed_array_offset: ["Start offset is too large:"],
121 invalid_typed_array_length: ["Invalid typed array length"], 120 invalid_typed_array_length: ["Invalid typed array length"],
122 invalid_typed_array_alignment: ["%0", " of ", "%1", " should be a multiple of ", "%2"], 121 invalid_typed_array_alignment: ["%0", " of ", "%1", " should be a multiple of ", "%2"],
123 typed_array_set_source_too_large: 122 typed_array_set_source_too_large:
124 ["Source is too large"], 123 ["Source is too large"],
125 typed_array_set_negative_offset: 124 typed_array_set_negative_offset:
126 ["Start offset is negative"], 125 ["Start offset is negative"],
127 invalid_data_view_offset: ["Start offset is outside the bounds of the buf fer"], 126 invalid_data_view_offset: ["Start offset is outside the bounds of the buf fer"],
128 invalid_data_view_length: ["Invalid data view length"], 127 invalid_data_view_length: ["Invalid data view length"],
129 invalid_data_view_accessor_offset: 128 invalid_data_view_accessor_offset:
130 ["Offset is outside the bounds of the DataView" ], 129 ["Offset is outside the bounds of the DataView" ],
131
132 invalid_time_value: ["Invalid time value"],
133 invalid_count_value: ["Invalid count value"],
134 invalid_code_point: ["Invalid code point ", "%0"],
135 // ReferenceError 130 // ReferenceError
136 invalid_lhs_in_assignment: ["Invalid left-hand side in assignment"], 131 invalid_lhs_in_assignment: ["Invalid left-hand side in assignment"],
137 invalid_lhs_in_for: ["Invalid left-hand side in for-loop"], 132 invalid_lhs_in_for: ["Invalid left-hand side in for-loop"],
138 invalid_lhs_in_postfix_op: ["Invalid left-hand side expression in postfix operation"], 133 invalid_lhs_in_postfix_op: ["Invalid left-hand side expression in postfix operation"],
139 invalid_lhs_in_prefix_op: ["Invalid left-hand side expression in prefix o peration"], 134 invalid_lhs_in_prefix_op: ["Invalid left-hand side expression in prefix o peration"],
140 // SyntaxError 135 // SyntaxError
141 not_isvar: ["builtin %IS_VAR: not a variable"], 136 not_isvar: ["builtin %IS_VAR: not a variable"],
142 single_function_literal: ["Single function literal required"], 137 single_function_literal: ["Single function literal required"],
143 invalid_regexp_flags: ["Invalid flags supplied to RegExp constructor '", "%0", "'"], 138 invalid_regexp_flags: ["Invalid flags supplied to RegExp constructor '", "%0", "'"],
144 invalid_regexp: ["Invalid RegExp pattern /", "%0", "/"], 139 invalid_regexp: ["Invalid RegExp pattern /", "%0", "/"],
(...skipping 1149 matching lines...) Expand 10 before | Expand all | Expand 10 after
1294 return MakeGenericError(GlobalTypeError, type, [arg]); 1289 return MakeGenericError(GlobalTypeError, type, [arg]);
1295 } 1290 }
1296 1291
1297 //Boilerplate for exceptions for stack overflows. Used from 1292 //Boilerplate for exceptions for stack overflows. Used from
1298 //Isolate::StackOverflow(). 1293 //Isolate::StackOverflow().
1299 $stackOverflowBoilerplate = MakeRangeError(kStackOverflow); 1294 $stackOverflowBoilerplate = MakeRangeError(kStackOverflow);
1300 %DefineAccessorPropertyUnchecked($stackOverflowBoilerplate, 'stack', 1295 %DefineAccessorPropertyUnchecked($stackOverflowBoilerplate, 'stack',
1301 StackTraceGetter, StackTraceSetter, DONT_ENUM); 1296 StackTraceGetter, StackTraceSetter, DONT_ENUM);
1302 1297
1303 })(); 1298 })();
OLDNEW
« no previous file with comments | « src/messages.h ('k') | src/string.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698