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 6248013: Strict mode octal literals. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Lasse's feedback Created 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | src/parser.h » ('j') | src/scanner-base.cc » ('J')
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 191 matching lines...) Expand 10 before | Expand all | Expand 10 after
202 array_indexof_not_defined: "Array.getIndexOf: Argument undefined", 202 array_indexof_not_defined: "Array.getIndexOf: Argument undefined",
203 object_not_extensible: "Can't add property %0, object is not extens ible", 203 object_not_extensible: "Can't add property %0, object is not extens ible",
204 illegal_access: "Illegal access", 204 illegal_access: "Illegal access",
205 invalid_preparser_data: "Invalid preparser data for function %0", 205 invalid_preparser_data: "Invalid preparser data for function %0",
206 strict_mode_with: "Strict mode code may not include a with sta tement", 206 strict_mode_with: "Strict mode code may not include a with sta tement",
207 strict_catch_variable: "Catch variable may not be eval or arguments in strict mode", 207 strict_catch_variable: "Catch variable may not be eval or arguments in strict mode",
208 strict_param_name: "Parameter name eval or arguments is not all owed in strict mode", 208 strict_param_name: "Parameter name eval or arguments is not all owed in strict mode",
209 strict_param_dupe: "Strict mode function may not have duplicate parameter names", 209 strict_param_dupe: "Strict mode function may not have duplicate parameter names",
210 strict_var_name: "Variable name may not be eval or arguments in strict mode", 210 strict_var_name: "Variable name may not be eval or arguments in strict mode",
211 strict_function_name: "Function name may not be eval or arguments in strict mode", 211 strict_function_name: "Function name may not be eval or arguments in strict mode",
212 strict_octal_literal: "Octal literals are not allowed in strict mo de.",
212 }; 213 };
213 } 214 }
214 var format = kMessages[message.type]; 215 var format = kMessages[message.type];
215 if (!format) return "<unknown message " + message.type + ">"; 216 if (!format) return "<unknown message " + message.type + ">";
216 return FormatString(format, message.args); 217 return FormatString(format, message.args);
217 } 218 }
218 219
219 220
220 function GetLineNumber(message) { 221 function GetLineNumber(message) {
221 if (message.startPos == -1) return kNoLineNumberInfo; 222 if (message.startPos == -1) return kNoLineNumberInfo;
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after
1021 return this.name + message; 1022 return this.name + message;
1022 } 1023 }
1023 1024
1024 %FunctionSetName(errorToString, 'toString'); 1025 %FunctionSetName(errorToString, 'toString');
1025 %SetProperty($Error.prototype, 'toString', errorToString, DONT_ENUM); 1026 %SetProperty($Error.prototype, 'toString', errorToString, DONT_ENUM);
1026 1027
1027 1028
1028 // Boilerplate for exceptions for stack overflows. Used from 1029 // Boilerplate for exceptions for stack overflows. Used from
1029 // Top::StackOverflow(). 1030 // Top::StackOverflow().
1030 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []); 1031 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []);
OLDNEW
« no previous file with comments | « no previous file | src/parser.h » ('j') | src/scanner-base.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698