| OLD | NEW | 
|---|
| 1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 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 228 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 239       "strict_function",              ["In strict mode code, functions can only 
      be declared at top level or immediately within another function." ], | 239       "strict_function",              ["In strict mode code, functions can only 
      be declared at top level or immediately within another function." ], | 
| 240       "strict_read_only_property",    ["Cannot assign to read only property '", 
      "%0", "' of ", "%1"], | 240       "strict_read_only_property",    ["Cannot assign to read only property '", 
      "%0", "' of ", "%1"], | 
| 241       "strict_cannot_assign",         ["Cannot assign to read only '", "%0", "' 
      in strict mode"], | 241       "strict_cannot_assign",         ["Cannot assign to read only '", "%0", "' 
      in strict mode"], | 
| 242       "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"], | 242       "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"], | 
| 243       "strict_caller",                ["Illegal access to a strict mode caller f
      unction."], | 243       "strict_caller",                ["Illegal access to a strict mode caller f
      unction."], | 
| 244       "unprotected_let",              ["Illegal let declaration in unprotected s
      tatement context."], | 244       "unprotected_let",              ["Illegal let declaration in unprotected s
      tatement context."], | 
| 245       "unprotected_const",            ["Illegal const declaration in unprotected
       statement context."], | 245       "unprotected_const",            ["Illegal const declaration in unprotected
       statement context."], | 
| 246       "cant_prevent_ext_external_array_elements", ["Cannot prevent extension of 
      an object with external array elements"], | 246       "cant_prevent_ext_external_array_elements", ["Cannot prevent extension of 
      an object with external array elements"], | 
| 247       "redef_external_array_element", ["Cannot redefine a property of an object 
      with external array elements"], | 247       "redef_external_array_element", ["Cannot redefine a property of an object 
      with external array elements"], | 
| 248       "harmony_const_assign",         ["Assignment to constant variable."], | 248       "harmony_const_assign",         ["Assignment to constant variable."], | 
|  | 249       "invalid_module_path",          ["Module does not export '", "%0", "', or 
      export is not itself a module"], | 
|  | 250       "module_type_error",            ["Module '", "%0", "' used improperly"], | 
| 249     ]; | 251     ]; | 
| 250     var messages = { __proto__ : null }; | 252     var messages = { __proto__ : null }; | 
| 251     for (var i = 0; i < messagesDictionary.length; i += 2) { | 253     for (var i = 0; i < messagesDictionary.length; i += 2) { | 
| 252       var key = messagesDictionary[i]; | 254       var key = messagesDictionary[i]; | 
| 253       var format = messagesDictionary[i + 1]; | 255       var format = messagesDictionary[i + 1]; | 
| 254 | 256 | 
| 255       for (var j = 0; j < format.length; j++) { | 257       for (var j = 0; j < format.length; j++) { | 
| 256         %IgnoreAttributesAndSetProperty(format, %_NumberToString(j), format[j], | 258         %IgnoreAttributesAndSetProperty(format, %_NumberToString(j), format[j], | 
| 257                                         DONT_DELETE | READ_ONLY | DONT_ENUM); | 259                                         DONT_DELETE | READ_ONLY | DONT_ENUM); | 
| 258       } | 260       } | 
| (...skipping 957 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1216     throw e; | 1218     throw e; | 
| 1217   } | 1219   } | 
| 1218 } | 1220 } | 
| 1219 | 1221 | 
| 1220 | 1222 | 
| 1221 InstallFunctions($Error.prototype, DONT_ENUM, ['toString', ErrorToString]); | 1223 InstallFunctions($Error.prototype, DONT_ENUM, ['toString', ErrorToString]); | 
| 1222 | 1224 | 
| 1223 // Boilerplate for exceptions for stack overflows. Used from | 1225 // Boilerplate for exceptions for stack overflows. Used from | 
| 1224 // Isolate::StackOverflow(). | 1226 // Isolate::StackOverflow(). | 
| 1225 var kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []); | 1227 var kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []); | 
| OLD | NEW | 
|---|