| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 45   not_defined:                   ["%0", " is not defined"], | 45   not_defined:                   ["%0", " is not defined"], | 
| 46   non_method:                    ["'super' is referenced from non-method"], | 46   non_method:                    ["'super' is referenced from non-method"], | 
| 47   unsupported_super:             ["Unsupported reference to 'super'"], | 47   unsupported_super:             ["Unsupported reference to 'super'"], | 
| 48   non_object_property_load:      ["Cannot read property '", "%0", "' of ", "%1"]
      , | 48   non_object_property_load:      ["Cannot read property '", "%0", "' of ", "%1"]
      , | 
| 49   non_object_property_store:     ["Cannot set property '", "%0", "' of ", "%1"], | 49   non_object_property_store:     ["Cannot set property '", "%0", "' of ", "%1"], | 
| 50   with_expression:               ["%0", " has no properties"], | 50   with_expression:               ["%0", " has no properties"], | 
| 51   illegal_invocation:            ["Illegal invocation"], | 51   illegal_invocation:            ["Illegal invocation"], | 
| 52   no_setter_in_callback:         ["Cannot set property ", "%0", " of ", "%1", " 
      which has only a getter"], | 52   no_setter_in_callback:         ["Cannot set property ", "%0", " of ", "%1", " 
      which has only a getter"], | 
| 53   apply_non_function:            ["Function.prototype.apply was called on ", "%0
      ", ", which is a ", "%1", " and not a function"], | 53   apply_non_function:            ["Function.prototype.apply was called on ", "%0
      ", ", which is a ", "%1", " and not a function"], | 
| 54   apply_wrong_args:              ["Function.prototype.apply: Arguments list has 
      wrong type"], | 54   apply_wrong_args:              ["Function.prototype.apply: Arguments list has 
      wrong type"], | 
|  | 55   reflect_apply_wrong_args:      ["Reflect.apply: Arguments list has wrong type"
      ], | 
|  | 56   reflect_construct_wrong_args:  ["Reflect.construct: Arguments list has wrong t
      ype"], | 
| 55   flags_getter_non_object:       ["RegExp.prototype.flags getter called on non-o
      bject ", "%0"], | 57   flags_getter_non_object:       ["RegExp.prototype.flags getter called on non-o
      bject ", "%0"], | 
| 56   invalid_in_operator_use:       ["Cannot use 'in' operator to search for '", "%
      0", "' in ", "%1"], | 58   invalid_in_operator_use:       ["Cannot use 'in' operator to search for '", "%
      0", "' in ", "%1"], | 
| 57   instanceof_function_expected:  ["Expecting a function in instanceof check, but
       got ", "%0"], | 59   instanceof_function_expected:  ["Expecting a function in instanceof check, but
       got ", "%0"], | 
| 58   instanceof_nonobject_proto:    ["Function has non-object prototype '", "%0", "
      ' in instanceof check"], | 60   instanceof_nonobject_proto:    ["Function has non-object prototype '", "%0", "
      ' in instanceof check"], | 
| 59   undefined_or_null_to_object:   ["Cannot convert undefined or null to object"], | 61   undefined_or_null_to_object:   ["Cannot convert undefined or null to object"], | 
| 60   reduce_no_initial:             ["Reduce of empty array with no initial value"]
      , | 62   reduce_no_initial:             ["Reduce of empty array with no initial value"]
      , | 
| 61   getter_must_be_callable:       ["Getter must be a function: ", "%0"], | 63   getter_must_be_callable:       ["Getter must be a function: ", "%0"], | 
| 62   setter_must_be_callable:       ["Setter must be a function: ", "%0"], | 64   setter_must_be_callable:       ["Setter must be a function: ", "%0"], | 
| 63   value_and_accessor:            ["Invalid property.  A property cannot both hav
      e accessors and be writable or have a value, ", "%0"], | 65   value_and_accessor:            ["Invalid property.  A property cannot both hav
      e accessors and be writable or have a value, ", "%0"], | 
| 64   proto_object_or_null:          ["Object prototype may only be an Object or nul
      l: ", "%0"], | 66   proto_object_or_null:          ["Object prototype may only be an Object or nul
      l: ", "%0"], | 
| (...skipping 1258 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 1323 function SetUpStackOverflowBoilerplate() { | 1325 function SetUpStackOverflowBoilerplate() { | 
| 1324   var boilerplate = MakeRangeError('stack_overflow', []); | 1326   var boilerplate = MakeRangeError('stack_overflow', []); | 
| 1325 | 1327 | 
| 1326   %DefineAccessorPropertyUnchecked( | 1328   %DefineAccessorPropertyUnchecked( | 
| 1327       boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM); | 1329       boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM); | 
| 1328 | 1330 | 
| 1329   return boilerplate; | 1331   return boilerplate; | 
| 1330 } | 1332 } | 
| 1331 | 1333 | 
| 1332 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); | 1334 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); | 
| OLD | NEW | 
|---|