| 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 233 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 244 "strict_cannot_assign", ["Cannot assign to read only '", "%0", "'
in strict mode"], | 244 "strict_cannot_assign", ["Cannot assign to read only '", "%0", "'
in strict mode"], |
| 245 "strict_poison_pill", ["'caller', 'callee', and 'arguments' prop
erties may not be accessed on strict mode functions or the arguments objects for
calls to them"], | 245 "strict_poison_pill", ["'caller', 'callee', and 'arguments' prop
erties may not be accessed on strict mode functions or the arguments objects for
calls to them"], |
| 246 "strict_caller", ["Illegal access to a strict mode caller f
unction."], | 246 "strict_caller", ["Illegal access to a strict mode caller f
unction."], |
| 247 "unprotected_let", ["Illegal let declaration in unprotected s
tatement context."], | 247 "unprotected_let", ["Illegal let declaration in unprotected s
tatement context."], |
| 248 "unprotected_const", ["Illegal const declaration in unprotected
statement context."], | 248 "unprotected_const", ["Illegal const declaration in unprotected
statement context."], |
| 249 "cant_prevent_ext_external_array_elements", ["Cannot prevent extension of
an object with external array elements"], | 249 "cant_prevent_ext_external_array_elements", ["Cannot prevent extension of
an object with external array elements"], |
| 250 "redef_external_array_element", ["Cannot redefine a property of an object
with external array elements"], | 250 "redef_external_array_element", ["Cannot redefine a property of an object
with external array elements"], |
| 251 "harmony_const_assign", ["Assignment to constant variable."], | 251 "harmony_const_assign", ["Assignment to constant variable."], |
| 252 "invalid_module_path", ["Module does not export '", "%0", "', or
export is not itself a module"], | 252 "invalid_module_path", ["Module does not export '", "%0", "', or
export is not itself a module"], |
| 253 "module_type_error", ["Module '", "%0", "' used improperly"], | 253 "module_type_error", ["Module '", "%0", "' used improperly"], |
| 254 "called_on_read_only", ["%0", " called on read only"], |
| 255 "cant_delete_non_configurable_property", ["Property ", "%0", " is non-con
figurable and can't be deleted"] |
| 254 ]; | 256 ]; |
| 255 var messages = { __proto__ : null }; | 257 var messages = { __proto__ : null }; |
| 256 for (var i = 0; i < messagesDictionary.length; i += 2) { | 258 for (var i = 0; i < messagesDictionary.length; i += 2) { |
| 257 var key = messagesDictionary[i]; | 259 var key = messagesDictionary[i]; |
| 258 var format = messagesDictionary[i + 1]; | 260 var format = messagesDictionary[i + 1]; |
| 259 | 261 |
| 260 for (var j = 0; j < format.length; j++) { | 262 for (var j = 0; j < format.length; j++) { |
| 261 %IgnoreAttributesAndSetProperty(format, %_NumberToString(j), format[j], | 263 %IgnoreAttributesAndSetProperty(format, %_NumberToString(j), format[j], |
| 262 DONT_DELETE | READ_ONLY | DONT_ENUM); | 264 DONT_DELETE | READ_ONLY | DONT_ENUM); |
| 263 } | 265 } |
| (...skipping 984 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1248 throw e; | 1250 throw e; |
| 1249 } | 1251 } |
| 1250 } | 1252 } |
| 1251 | 1253 |
| 1252 | 1254 |
| 1253 InstallFunctions($Error.prototype, DONT_ENUM, ['toString', ErrorToString]); | 1255 InstallFunctions($Error.prototype, DONT_ENUM, ['toString', ErrorToString]); |
| 1254 | 1256 |
| 1255 // Boilerplate for exceptions for stack overflows. Used from | 1257 // Boilerplate for exceptions for stack overflows. Used from |
| 1256 // Isolate::StackOverflow(). | 1258 // Isolate::StackOverflow(). |
| 1257 var kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []); | 1259 var kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []); |
| OLD | NEW |