OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 strict_function: ["In strict mode code, functions can only be de
clared at top level or immediately within another function." ], | 174 strict_function: ["In strict mode code, functions can only be de
clared at top level or immediately within another function." ], |
175 strict_read_only_property: ["Cannot assign to read only property '", "%0",
"' of ", "%1"], | 175 strict_read_only_property: ["Cannot assign to read only property '", "%0",
"' of ", "%1"], |
176 strict_cannot_assign: ["Cannot assign to read only '", "%0", "' in st
rict mode"], | 176 strict_cannot_assign: ["Cannot assign to read only '", "%0", "' in st
rict mode"], |
177 strict_poison_pill: ["'caller', 'callee', and 'arguments' propertie
s may not be accessed on strict mode functions or the arguments objects for call
s to them"], | 177 strict_poison_pill: ["'caller', 'callee', and 'arguments' propertie
s may not be accessed on strict mode functions or the arguments objects for call
s to them"], |
178 strict_caller: ["Illegal access to a strict mode caller functi
on."], | 178 strict_caller: ["Illegal access to a strict mode caller functi
on."], |
179 unprotected_let: ["Illegal let declaration in unprotected statem
ent context."], | 179 unprotected_let: ["Illegal let declaration in unprotected statem
ent context."], |
180 unprotected_const: ["Illegal const declaration in unprotected stat
ement context."], | 180 unprotected_const: ["Illegal const declaration in unprotected stat
ement context."], |
181 cant_prevent_ext_external_array_elements: ["Cannot prevent extension of an obj
ect with external array elements"], | 181 cant_prevent_ext_external_array_elements: ["Cannot prevent extension of an obj
ect with external array elements"], |
182 redef_external_array_element: ["Cannot redefine a property of an object with
external array elements"], | 182 redef_external_array_element: ["Cannot redefine a property of an object with
external array elements"], |
183 harmony_const_assign: ["Assignment to constant variable."], | 183 harmony_const_assign: ["Assignment to constant variable."], |
184 symbol_to_string: ["Conversion from symbol to string"], | 184 symbol_data_undefined: ["Symbol wrapper object has no symbol data"], |
| 185 symbol_value_expected: ["Symbol wrapper constructor called with a non-
Symbol value argument"], |
| 186 symbol_to_string: ["Cannot convert Symbol values to strings"], |
| 187 symbol_to_primitive: ["Cannot convert Symbol wrapper objects to prim
itive values"], |
185 invalid_module_path: ["Module does not export '", "%0", "', or expor
t is not itself a module"], | 188 invalid_module_path: ["Module does not export '", "%0", "', or expor
t is not itself a module"], |
186 module_type_error: ["Module '", "%0", "' used improperly"], | 189 module_type_error: ["Module '", "%0", "' used improperly"], |
187 module_export_undefined: ["Export '", "%0", "' is not defined in module"
] | 190 module_export_undefined: ["Export '", "%0", "' is not defined in module"
] |
188 }; | 191 }; |
189 | 192 |
190 | 193 |
191 function FormatString(format, args) { | 194 function FormatString(format, args) { |
192 var result = ""; | 195 var result = ""; |
193 var arg_num = 0; | 196 var arg_num = 0; |
194 for (var i = 0; i < format.length; i++) { | 197 for (var i = 0; i < format.length; i++) { |
(...skipping 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1355 %GetAndClearOverflowedStackTrace(this); | 1358 %GetAndClearOverflowedStackTrace(this); |
1356 }; | 1359 }; |
1357 | 1360 |
1358 %DefineOrRedefineAccessorProperty( | 1361 %DefineOrRedefineAccessorProperty( |
1359 boilerplate, 'stack', getter, setter, DONT_ENUM); | 1362 boilerplate, 'stack', getter, setter, DONT_ENUM); |
1360 | 1363 |
1361 return boilerplate; | 1364 return boilerplate; |
1362 } | 1365 } |
1363 | 1366 |
1364 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); | 1367 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); |
OLD | NEW |