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

Side by Side Diff: src/messages.js

Issue 542092: Submit Object.getOwnPropertyNames patch by Pavel Feldman. See http://codereview.chromium.org/549050. (Closed)
Patch Set: Created 10 years, 11 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
« no previous file with comments | « no previous file | src/mirror-delay.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
171 duplicate_regexp_flag: "Duplicate RegExp flag %0", 171 duplicate_regexp_flag: "Duplicate RegExp flag %0",
172 invalid_regexp: "Invalid RegExp pattern /%0/", 172 invalid_regexp: "Invalid RegExp pattern /%0/",
173 illegal_break: "Illegal break statement", 173 illegal_break: "Illegal break statement",
174 illegal_continue: "Illegal continue statement", 174 illegal_continue: "Illegal continue statement",
175 illegal_return: "Illegal return statement", 175 illegal_return: "Illegal return statement",
176 error_loading_debugger: "Error loading debugger", 176 error_loading_debugger: "Error loading debugger",
177 no_input_to_regexp: "No input to %0", 177 no_input_to_regexp: "No input to %0",
178 result_not_primitive: "Result of %0 must be a primitive, was %1", 178 result_not_primitive: "Result of %0 must be a primitive, was %1",
179 invalid_json: "String '%0' is not valid JSON", 179 invalid_json: "String '%0' is not valid JSON",
180 circular_structure: "Converting circular structure to JSON", 180 circular_structure: "Converting circular structure to JSON",
181 object_keys_non_object: "Object.keys called on non-object", 181 obj_ctor_property_non_object: "Object.%0 called on non-object",
182 object_get_prototype_non_object: "Object.getPrototypeOf called on non-obje ct",
183 array_indexof_not_defined: "Array.getIndexOf: Argument undefined" 182 array_indexof_not_defined: "Array.getIndexOf: Argument undefined"
184 }; 183 };
185 } 184 }
186 var format = kMessages[message.type]; 185 var format = kMessages[message.type];
187 if (!format) return "<unknown message " + message.type + ">"; 186 if (!format) return "<unknown message " + message.type + ">";
188 return FormatString(format, message.args); 187 return FormatString(format, message.args);
189 } 188 }
190 189
191 190
192 function GetLineNumber(message) { 191 function GetLineNumber(message) {
(...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after
928 return this.name + ": " + FormatMessage({ type: type, args: this.arguments } ); 927 return this.name + ": " + FormatMessage({ type: type, args: this.arguments } );
929 } 928 }
930 var message = this.message; 929 var message = this.message;
931 return this.name + (message ? (": " + message) : ""); 930 return this.name + (message ? (": " + message) : "");
932 }, DONT_ENUM); 931 }, DONT_ENUM);
933 932
934 933
935 // Boilerplate for exceptions for stack overflows. Used from 934 // Boilerplate for exceptions for stack overflows. Used from
936 // Top::StackOverflow(). 935 // Top::StackOverflow().
937 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []); 936 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []);
OLDNEW
« no previous file with comments | « no previous file | src/mirror-delay.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698