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

Side by Side Diff: src/messages.js

Issue 149253010: Tests and fixes for (pre)parse errors related to strict reserved words. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 years, 10 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.cc » ('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 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 strict_param_dupe: ["Strict mode function may not have duplicate p arameter names"], 163 strict_param_dupe: ["Strict mode function may not have duplicate p arameter names"],
164 strict_var_name: ["Variable name may not be eval or arguments in strict mode"], 164 strict_var_name: ["Variable name may not be eval or arguments in strict mode"],
165 strict_function_name: ["Function name may not be eval or arguments in strict mode"], 165 strict_function_name: ["Function name may not be eval or arguments in strict mode"],
166 strict_octal_literal: ["Octal literals are not allowed in strict mode ."], 166 strict_octal_literal: ["Octal literals are not allowed in strict mode ."],
167 strict_duplicate_property: ["Duplicate data property in object literal not allowed in strict mode"], 167 strict_duplicate_property: ["Duplicate data property in object literal not allowed in strict mode"],
168 accessor_data_property: ["Object literal may not have data and accessor property with the same name"], 168 accessor_data_property: ["Object literal may not have data and accessor property with the same name"],
169 accessor_get_set: ["Object literal may not have multiple get/set accessors with the same name"], 169 accessor_get_set: ["Object literal may not have multiple get/set accessors with the same name"],
170 strict_lhs_assignment: ["Assignment to eval or arguments is not allowe d in strict mode"], 170 strict_lhs_assignment: ["Assignment to eval or arguments is not allowe d in strict mode"],
171 strict_lhs_postfix: ["Postfix increment/decrement may not have eval or arguments operand in strict mode"], 171 strict_lhs_postfix: ["Postfix increment/decrement may not have eval or arguments operand in strict mode"],
172 strict_lhs_prefix: ["Prefix increment/decrement may not have eval or arguments operand in strict mode"], 172 strict_lhs_prefix: ["Prefix increment/decrement may not have eval or arguments operand in strict mode"],
173 strict_reserved_word: ["Use of future reserved word in strict mode"],
174 strict_delete: ["Delete of an unqualified identifier in strict mode."], 173 strict_delete: ["Delete of an unqualified identifier in strict mode."],
175 strict_delete_property: ["Cannot delete property '", "%0", "' of ", "%1 "], 174 strict_delete_property: ["Cannot delete property '", "%0", "' of ", "%1 "],
176 strict_const: ["Use of const in strict mode."], 175 strict_const: ["Use of const in strict mode."],
177 strict_function: ["In strict mode code, functions can only be de clared at top level or immediately within another function." ], 176 strict_function: ["In strict mode code, functions can only be de clared at top level or immediately within another function." ],
178 strict_read_only_property: ["Cannot assign to read only property '", "%0", "' of ", "%1"], 177 strict_read_only_property: ["Cannot assign to read only property '", "%0", "' of ", "%1"],
179 strict_cannot_assign: ["Cannot assign to read only '", "%0", "' in st rict mode"], 178 strict_cannot_assign: ["Cannot assign to read only '", "%0", "' in st rict mode"],
180 strict_poison_pill: ["'caller', 'callee', and 'arguments' propertie s may not be accessed on strict mode functions or the arguments objects for call s to them"], 179 strict_poison_pill: ["'caller', 'callee', and 'arguments' propertie s may not be accessed on strict mode functions or the arguments objects for call s to them"],
181 strict_caller: ["Illegal access to a strict mode caller functi on."], 180 strict_caller: ["Illegal access to a strict mode caller functi on."],
182 unprotected_let: ["Illegal let declaration in unprotected statem ent context."], 181 unprotected_let: ["Illegal let declaration in unprotected statem ent context."],
183 unprotected_const: ["Illegal const declaration in unprotected stat ement context."], 182 unprotected_const: ["Illegal const declaration in unprotected stat ement context."],
(...skipping 1174 matching lines...) Expand 10 before | Expand all | Expand 10 after
1358 %GetAndClearOverflowedStackTrace(this); 1357 %GetAndClearOverflowedStackTrace(this);
1359 }; 1358 };
1360 1359
1361 %DefineOrRedefineAccessorProperty( 1360 %DefineOrRedefineAccessorProperty(
1362 boilerplate, 'stack', getter, setter, DONT_ENUM); 1361 boilerplate, 'stack', getter, setter, DONT_ENUM);
1363 1362
1364 return boilerplate; 1363 return boilerplate;
1365 } 1364 }
1366 1365
1367 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); 1366 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate();
OLDNEW
« no previous file with comments | « no previous file | src/parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698