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

Side by Side Diff: src/messages.js

Issue 7207007: Proper handling of future reserved words in strict and normal mode. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: addressed comments Created 9 years, 5 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') | 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 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
141 if (kMessages === 0) { 141 if (kMessages === 0) {
142 kMessages = { 142 kMessages = {
143 // Error 143 // Error
144 cyclic_proto: ["Cyclic __proto__ value"], 144 cyclic_proto: ["Cyclic __proto__ value"],
145 code_gen_from_strings: ["Code generation from strings disallowed fo r this context"], 145 code_gen_from_strings: ["Code generation from strings disallowed fo r this context"],
146 // TypeError 146 // TypeError
147 unexpected_token: ["Unexpected token ", "%0"], 147 unexpected_token: ["Unexpected token ", "%0"],
148 unexpected_token_number: ["Unexpected number"], 148 unexpected_token_number: ["Unexpected number"],
149 unexpected_token_string: ["Unexpected string"], 149 unexpected_token_string: ["Unexpected string"],
150 unexpected_token_identifier: ["Unexpected identifier"], 150 unexpected_token_identifier: ["Unexpected identifier"],
151 unexpected_reserved: ["Unexpected reserved word"],
151 unexpected_strict_reserved: ["Unexpected strict mode reserved word"], 152 unexpected_strict_reserved: ["Unexpected strict mode reserved word"],
152 unexpected_eos: ["Unexpected end of input"], 153 unexpected_eos: ["Unexpected end of input"],
153 malformed_regexp: ["Invalid regular expression: /", "%0", "/: ", "%1"], 154 malformed_regexp: ["Invalid regular expression: /", "%0", "/: ", "%1"],
154 unterminated_regexp: ["Invalid regular expression: missing /"], 155 unterminated_regexp: ["Invalid regular expression: missing /"],
155 regexp_flags: ["Cannot supply flags when constructing one RegExp from another"], 156 regexp_flags: ["Cannot supply flags when constructing one RegExp from another"],
156 incompatible_method_receiver: ["Method ", "%0", " called on incompatible r eceiver ", "%1"], 157 incompatible_method_receiver: ["Method ", "%0", " called on incompatible r eceiver ", "%1"],
157 invalid_lhs_in_assignment: ["Invalid left-hand side in assignment"], 158 invalid_lhs_in_assignment: ["Invalid left-hand side in assignment"],
158 invalid_lhs_in_for_in: ["Invalid left-hand side in for-in"], 159 invalid_lhs_in_for_in: ["Invalid left-hand side in for-in"],
159 invalid_lhs_in_postfix_op: ["Invalid left-hand side expression in postf ix operation"], 160 invalid_lhs_in_postfix_op: ["Invalid left-hand side expression in postf ix operation"],
160 invalid_lhs_in_prefix_op: ["Invalid left-hand side expression in prefi x operation"], 161 invalid_lhs_in_prefix_op: ["Invalid left-hand side expression in prefi x operation"],
(...skipping 952 matching lines...) Expand 10 before | Expand all | Expand 10 after
1113 else throw e; 1114 else throw e;
1114 } 1115 }
1115 } 1116 }
1116 1117
1117 1118
1118 InstallFunctions($Error.prototype, DONT_ENUM, ['toString', errorToString]); 1119 InstallFunctions($Error.prototype, DONT_ENUM, ['toString', errorToString]);
1119 1120
1120 // Boilerplate for exceptions for stack overflows. Used from 1121 // Boilerplate for exceptions for stack overflows. Used from
1121 // Isolate::StackOverflow(). 1122 // Isolate::StackOverflow().
1122 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []); 1123 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []);
OLDNEW
« no previous file with comments | « no previous file | src/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698