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

Side by Side Diff: src/messages.js

Issue 8564001: Make let/const outside of the extended mode early errors (under harmony flag). (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Address comments and adapt preparser. Created 9 years, 1 month 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.cc » ('j') | test/mjsunit/harmony/block-early-errors.js » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 "invalid_array_length", ["Invalid array length"], 199 "invalid_array_length", ["Invalid array length"],
200 "stack_overflow", ["Maximum call stack size exceeded"], 200 "stack_overflow", ["Maximum call stack size exceeded"],
201 "invalid_time_value", ["Invalid time value"], 201 "invalid_time_value", ["Invalid time value"],
202 // SyntaxError 202 // SyntaxError
203 "unable_to_parse", ["Parse error"], 203 "unable_to_parse", ["Parse error"],
204 "invalid_regexp_flags", ["Invalid flags supplied to RegExp constru ctor '", "%0", "'"], 204 "invalid_regexp_flags", ["Invalid flags supplied to RegExp constru ctor '", "%0", "'"],
205 "invalid_regexp", ["Invalid RegExp pattern /", "%0", "/"], 205 "invalid_regexp", ["Invalid RegExp pattern /", "%0", "/"],
206 "illegal_break", ["Illegal break statement"], 206 "illegal_break", ["Illegal break statement"],
207 "illegal_continue", ["Illegal continue statement"], 207 "illegal_continue", ["Illegal continue statement"],
208 "illegal_return", ["Illegal return statement"], 208 "illegal_return", ["Illegal return statement"],
209 "illegal_let", ["Illegal let declaration outside extended mode"],
209 "error_loading_debugger", ["Error loading debugger"], 210 "error_loading_debugger", ["Error loading debugger"],
210 "no_input_to_regexp", ["No input to ", "%0"], 211 "no_input_to_regexp", ["No input to ", "%0"],
211 "invalid_json", ["String '", "%0", "' is not valid JSON"], 212 "invalid_json", ["String '", "%0", "' is not valid JSON"],
212 "circular_structure", ["Converting circular structure to JSON"], 213 "circular_structure", ["Converting circular structure to JSON"],
213 "obj_ctor_property_non_object", ["Object.", "%0", " called on non-object"] , 214 "obj_ctor_property_non_object", ["Object.", "%0", " called on non-object"] ,
214 "called_on_null_or_undefined", ["%0", " called on null or undefined"], 215 "called_on_null_or_undefined", ["%0", " called on null or undefined"],
215 "array_indexof_not_defined", ["Array.getIndexOf: Argument undefined"], 216 "array_indexof_not_defined", ["Array.getIndexOf: Argument undefined"],
216 "object_not_extensible", ["Can't add property ", "%0", ", object is not extensible"], 217 "object_not_extensible", ["Can't add property ", "%0", ", object is not extensible"],
217 "illegal_access", ["Illegal access"], 218 "illegal_access", ["Illegal access"],
218 "invalid_preparser_data", ["Invalid preparser data for function ", " %0"], 219 "invalid_preparser_data", ["Invalid preparser data for function ", " %0"],
(...skipping 971 matching lines...) Expand 10 before | Expand all | Expand 10 after
1190 throw e; 1191 throw e;
1191 } 1192 }
1192 } 1193 }
1193 1194
1194 1195
1195 InstallFunctions($Error.prototype, DONT_ENUM, ['toString', ErrorToString]); 1196 InstallFunctions($Error.prototype, DONT_ENUM, ['toString', ErrorToString]);
1196 1197
1197 // Boilerplate for exceptions for stack overflows. Used from 1198 // Boilerplate for exceptions for stack overflows. Used from
1198 // Isolate::StackOverflow(). 1199 // Isolate::StackOverflow().
1199 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []); 1200 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []);
OLDNEW
« no previous file with comments | « no previous file | src/parser.cc » ('j') | test/mjsunit/harmony/block-early-errors.js » ('J')

Powered by Google App Engine
This is Rietveld 408576698