| 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 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 strict_function: ["In strict mode code, functions can only be de
clared at top level or immediately within another function." ], | 143 strict_function: ["In strict mode code, functions can only be de
clared at top level or immediately within another function." ], |
| 144 strict_read_only_property: ["Cannot assign to read only property '", "%0",
"' of ", "%1"], | 144 strict_read_only_property: ["Cannot assign to read only property '", "%0",
"' of ", "%1"], |
| 145 strict_cannot_assign: ["Cannot assign to read only '", "%0", "' in st
rict mode"], | 145 strict_cannot_assign: ["Cannot assign to read only '", "%0", "' in st
rict mode"], |
| 146 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"], | 146 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"], |
| 147 strict_caller: ["Illegal access to a strict mode caller functi
on."], | 147 strict_caller: ["Illegal access to a strict mode caller functi
on."], |
| 148 unprotected_let: ["Illegal let declaration in unprotected statem
ent context."], | 148 unprotected_let: ["Illegal let declaration in unprotected statem
ent context."], |
| 149 unprotected_const: ["Illegal const declaration in unprotected stat
ement context."], | 149 unprotected_const: ["Illegal const declaration in unprotected stat
ement context."], |
| 150 cant_prevent_ext_external_array_elements: ["Cannot prevent extension of an obj
ect with external array elements"], | 150 cant_prevent_ext_external_array_elements: ["Cannot prevent extension of an obj
ect with external array elements"], |
| 151 redef_external_array_element: ["Cannot redefine a property of an object with
external array elements"], | 151 redef_external_array_element: ["Cannot redefine a property of an object with
external array elements"], |
| 152 harmony_const_assign: ["Assignment to constant variable."], | 152 harmony_const_assign: ["Assignment to constant variable."], |
| 153 symbol_to_string: ["Conversion from symbol to string"], |
| 153 invalid_module_path: ["Module does not export '", "%0", "', or expor
t is not itself a module"], | 154 invalid_module_path: ["Module does not export '", "%0", "', or expor
t is not itself a module"], |
| 154 module_type_error: ["Module '", "%0", "' used improperly"], | 155 module_type_error: ["Module '", "%0", "' used improperly"], |
| 155 module_export_undefined: ["Export '", "%0", "' is not defined in module"
], | 156 module_export_undefined: ["Export '", "%0", "' is not defined in module"
], |
| 156 }; | 157 }; |
| 157 | 158 |
| 158 | 159 |
| 159 function FormatString(format, args) { | 160 function FormatString(format, args) { |
| 160 var result = ""; | 161 var result = ""; |
| 161 var arg_num = 0; | 162 var arg_num = 0; |
| 162 for (var i = 0; i < format.length; i++) { | 163 for (var i = 0; i < format.length; i++) { |
| (...skipping 1139 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1302 %SetOverflowedStackTrace(this, void 0); | 1303 %SetOverflowedStackTrace(this, void 0); |
| 1303 } | 1304 } |
| 1304 | 1305 |
| 1305 %DefineOrRedefineAccessorProperty( | 1306 %DefineOrRedefineAccessorProperty( |
| 1306 boilerplate, 'stack', getter, setter, DONT_ENUM); | 1307 boilerplate, 'stack', getter, setter, DONT_ENUM); |
| 1307 | 1308 |
| 1308 return boilerplate; | 1309 return boilerplate; |
| 1309 } | 1310 } |
| 1310 | 1311 |
| 1311 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); | 1312 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); |
| OLD | NEW |