Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(4)

Side by Side Diff: src/messages.js

Issue 88022: Add Array.prototype.reduce and .reduceRight. (Closed)
Patch Set: Created 11 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 illegal_eval: "Unsupported indirect eval() call", 91 illegal_eval: "Unsupported indirect eval() call",
92 with_expression: "%0 has no properties", 92 with_expression: "%0 has no properties",
93 illegal_invocation: "Illegal invocation", 93 illegal_invocation: "Illegal invocation",
94 no_setter_in_callback: "Cannot set property %0 of %1 which has only a g etter", 94 no_setter_in_callback: "Cannot set property %0 of %1 which has only a g etter",
95 apply_non_function: "Function.prototype.apply was called on %0, whic h is a %1 and not a function", 95 apply_non_function: "Function.prototype.apply was called on %0, whic h is a %1 and not a function",
96 apply_wrong_args: "Function.prototype.apply: Arguments list has wr ong type", 96 apply_wrong_args: "Function.prototype.apply: Arguments list has wr ong type",
97 invalid_in_operator_use: "Cannot use 'in' operator to search for '%0' in %1", 97 invalid_in_operator_use: "Cannot use 'in' operator to search for '%0' in %1",
98 instanceof_function_expected: "Expecting a function in instanceof check, but g ot %0", 98 instanceof_function_expected: "Expecting a function in instanceof check, but g ot %0",
99 instanceof_nonobject_proto: "Function has non-object prototype '%0' in insta nceof check", 99 instanceof_nonobject_proto: "Function has non-object prototype '%0' in insta nceof check",
100 null_to_object: "Cannot convert null to object", 100 null_to_object: "Cannot convert null to object",
101 reduce_no_initial: "Reduce of empty array with no initial value",
101 // RangeError 102 // RangeError
102 invalid_array_length: "Invalid array length", 103 invalid_array_length: "Invalid array length",
103 invalid_array_apply_length: "Function.prototype.apply supports only up to 10 24 arguments", 104 invalid_array_apply_length: "Function.prototype.apply supports only up to 10 24 arguments",
104 stack_overflow: "Maximum call stack size exceeded", 105 stack_overflow: "Maximum call stack size exceeded",
105 apply_overflow: "Function.prototype.apply cannot support %0 argu ments", 106 apply_overflow: "Function.prototype.apply cannot support %0 argu ments",
106 // SyntaxError 107 // SyntaxError
107 unable_to_parse: "Parse error", 108 unable_to_parse: "Parse error",
108 duplicate_regexp_flag: "Duplicate RegExp flag %0", 109 duplicate_regexp_flag: "Duplicate RegExp flag %0",
109 unrecognized_regexp_flag: "Unrecognized RegExp flag %0", 110 unrecognized_regexp_flag: "Unrecognized RegExp flag %0",
110 invalid_regexp: "Invalid RegExp pattern /%0/", 111 invalid_regexp: "Invalid RegExp pattern /%0/",
(...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after
677 return this.name + ": " + FormatMessage({ type: type, args: this.arguments } ); 678 return this.name + ": " + FormatMessage({ type: type, args: this.arguments } );
678 } 679 }
679 var message = this.message; 680 var message = this.message;
680 return this.name + (message ? (": " + message) : ""); 681 return this.name + (message ? (": " + message) : "");
681 }, DONT_ENUM); 682 }, DONT_ENUM);
682 683
683 684
684 // Boilerplate for exceptions for stack overflows. Used from 685 // Boilerplate for exceptions for stack overflows. Used from
685 // Top::StackOverflow(). 686 // Top::StackOverflow().
686 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []); 687 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698