| 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 167 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 178 "reduce_no_initial", ["Reduce of empty array with no initial va
lue"], | 178 "reduce_no_initial", ["Reduce of empty array with no initial va
lue"], |
| 179 "getter_must_be_callable", ["Getter must be a function: ", "%0"], | 179 "getter_must_be_callable", ["Getter must be a function: ", "%0"], |
| 180 "setter_must_be_callable", ["Setter must be a function: ", "%0"], | 180 "setter_must_be_callable", ["Setter must be a function: ", "%0"], |
| 181 "value_and_accessor", ["Invalid property. A property cannot bot
h have accessors and be writable or have a value, ", "%0"], | 181 "value_and_accessor", ["Invalid property. A property cannot bot
h have accessors and be writable or have a value, ", "%0"], |
| 182 "proto_object_or_null", ["Object prototype may only be an Object o
r null"], | 182 "proto_object_or_null", ["Object prototype may only be an Object o
r null"], |
| 183 "property_desc_object", ["Property description must be an object:
", "%0"], | 183 "property_desc_object", ["Property description must be an object:
", "%0"], |
| 184 "redefine_disallowed", ["Cannot redefine property: ", "%0"], | 184 "redefine_disallowed", ["Cannot redefine property: ", "%0"], |
| 185 "define_disallowed", ["Cannot define property:", "%0", ", objec
t is not extensible."], | 185 "define_disallowed", ["Cannot define property:", "%0", ", objec
t is not extensible."], |
| 186 "non_extensible_proto", ["%0", " is not extensible"], | 186 "non_extensible_proto", ["%0", " is not extensible"], |
| 187 "handler_non_object", ["Proxy.", "%0", " called with non-object
as handler"], | 187 "handler_non_object", ["Proxy.", "%0", " called with non-object
as handler"], |
| 188 "trap_function_expected", ["Proxy.", "%0", " called with non-functio
n for ", "%1", " trap"], | 188 "trap_function_expected", ["Proxy.", "%0", " called with non-functio
n for '", "%1", "' trap"], |
| 189 "handler_trap_missing", ["Proxy handler ", "%0", " has no '", "%1"
, "' trap"], | 189 "handler_trap_missing", ["Proxy handler ", "%0", " has no '", "%1"
, "' trap"], |
| 190 "handler_trap_must_be_callable", ["Proxy handler ", "%0", " has non-callab
le '", "%1", "' trap"], | 190 "handler_trap_must_be_callable", ["Proxy handler ", "%0", " has non-callab
le '", "%1", "' trap"], |
| 191 "handler_returned_false", ["Proxy handler ", "%0", " returned false
for '", "%1", "' trap"], | 191 "handler_returned_false", ["Proxy handler ", "%0", " returned false
from '", "%1", "' trap"], |
| 192 "handler_returned_undefined", ["Proxy handler ", "%0", " returned undefi
ned for '", "%1", "' trap"], | 192 "handler_returned_undefined", ["Proxy handler ", "%0", " returned undefi
ned from '", "%1", "' trap"], |
| 193 "proxy_prop_not_configurable", ["Trap ", "%1", " of proxy handler ", "%0"
, " returned non-configurable descriptor for property ", "%2"], | 193 "proxy_prop_not_configurable", ["Proxy handler ", "%0", " returned non-co
nfigurable descriptor for property '", "%2", "' from '", "%1", "' trap"], |
| 194 "proxy_non_object_prop_names", ["Trap ", "%1", " returned non-object ", "
%0"], | 194 "proxy_non_object_prop_names", ["Trap '", "%1", "' returned non-object ",
"%0"], |
| 195 "proxy_repeated_prop_name", ["Trap ", "%1", " returned repeated proper
ty name ", "%2"], | 195 "proxy_repeated_prop_name", ["Trap '", "%1", "' returned repeated prop
erty name '", "%2", "'"], |
| 196 "invalid_weakmap_key", ["Invalid value used as weak map key"], | 196 "invalid_weakmap_key", ["Invalid value used as weak map key"], |
| 197 // RangeError | 197 // RangeError |
| 198 "invalid_array_length", ["Invalid array length"], | 198 "invalid_array_length", ["Invalid array length"], |
| 199 "stack_overflow", ["Maximum call stack size exceeded"], | 199 "stack_overflow", ["Maximum call stack size exceeded"], |
| 200 // SyntaxError | 200 // SyntaxError |
| 201 "unable_to_parse", ["Parse error"], | 201 "unable_to_parse", ["Parse error"], |
| 202 "invalid_regexp_flags", ["Invalid flags supplied to RegExp constru
ctor '", "%0", "'"], | 202 "invalid_regexp_flags", ["Invalid flags supplied to RegExp constru
ctor '", "%0", "'"], |
| 203 "invalid_regexp", ["Invalid RegExp pattern /", "%0", "/"], | 203 "invalid_regexp", ["Invalid RegExp pattern /", "%0", "/"], |
| 204 "illegal_break", ["Illegal break statement"], | 204 "illegal_break", ["Illegal break statement"], |
| 205 "illegal_continue", ["Illegal continue statement"], | 205 "illegal_continue", ["Illegal continue statement"], |
| (...skipping 978 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1184 throw e; | 1184 throw e; |
| 1185 } | 1185 } |
| 1186 } | 1186 } |
| 1187 | 1187 |
| 1188 | 1188 |
| 1189 InstallFunctions($Error.prototype, DONT_ENUM, ['toString', errorToString]); | 1189 InstallFunctions($Error.prototype, DONT_ENUM, ['toString', errorToString]); |
| 1190 | 1190 |
| 1191 // Boilerplate for exceptions for stack overflows. Used from | 1191 // Boilerplate for exceptions for stack overflows. Used from |
| 1192 // Isolate::StackOverflow(). | 1192 // Isolate::StackOverflow(). |
| 1193 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []); | 1193 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []); |
| OLD | NEW |