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 kMessages = { | 7 var kMessages = { |
8 // Error | 8 // Error |
9 cyclic_proto: ["Cyclic __proto__ value"], | 9 cyclic_proto: ["Cyclic __proto__ value"], |
10 code_gen_from_strings: ["%0"], | 10 code_gen_from_strings: ["%0"], |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 typed_array_set_negative_offset: | 106 typed_array_set_negative_offset: |
107 ["Start offset is negative"], | 107 ["Start offset is negative"], |
108 invalid_data_view_offset: ["Start offset is outside the bounds of the buf
fer"], | 108 invalid_data_view_offset: ["Start offset is outside the bounds of the buf
fer"], |
109 invalid_data_view_length: ["Invalid data view length"], | 109 invalid_data_view_length: ["Invalid data view length"], |
110 invalid_data_view_accessor_offset: | 110 invalid_data_view_accessor_offset: |
111 ["Offset is outside the bounds of the DataView"
], | 111 ["Offset is outside the bounds of the DataView"
], |
112 | 112 |
113 stack_overflow: ["Maximum call stack size exceeded"], | 113 stack_overflow: ["Maximum call stack size exceeded"], |
114 invalid_time_value: ["Invalid time value"], | 114 invalid_time_value: ["Invalid time value"], |
115 invalid_count_value: ["Invalid count value"], | 115 invalid_count_value: ["Invalid count value"], |
| 116 invalid_code_point: ["Invalid code point ", "%0"], |
116 // ReferenceError | 117 // ReferenceError |
117 invalid_lhs_in_assignment: ["Invalid left-hand side in assignment"], | 118 invalid_lhs_in_assignment: ["Invalid left-hand side in assignment"], |
118 invalid_lhs_in_for: ["Invalid left-hand side in for-loop"], | 119 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"], | 120 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"], | 121 invalid_lhs_in_prefix_op: ["Invalid left-hand side expression in prefix o
peration"], |
121 // SyntaxError | 122 // SyntaxError |
122 paren_in_arg_string: ["Function arg string contains parenthesis"], | 123 paren_in_arg_string: ["Function arg string contains parenthesis"], |
123 not_isvar: ["builtin %IS_VAR: not a variable"], | 124 not_isvar: ["builtin %IS_VAR: not a variable"], |
124 single_function_literal: ["Single function literal required"], | 125 single_function_literal: ["Single function literal required"], |
125 invalid_regexp_flags: ["Invalid flags supplied to RegExp constructor
'", "%0", "'"], | 126 invalid_regexp_flags: ["Invalid flags supplied to RegExp constructor
'", "%0", "'"], |
(...skipping 1156 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1282 function SetUpStackOverflowBoilerplate() { | 1283 function SetUpStackOverflowBoilerplate() { |
1283 var boilerplate = MakeRangeError('stack_overflow', []); | 1284 var boilerplate = MakeRangeError('stack_overflow', []); |
1284 | 1285 |
1285 %DefineAccessorPropertyUnchecked( | 1286 %DefineAccessorPropertyUnchecked( |
1286 boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM); | 1287 boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM); |
1287 | 1288 |
1288 return boilerplate; | 1289 return boilerplate; |
1289 } | 1290 } |
1290 | 1291 |
1291 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); | 1292 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); |
OLD | NEW |