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

Side by Side Diff: src/messages.js

Issue 200473003: Make invalid LHSs a parse-time (reference) error (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Comment Created 6 years, 9 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 | « src/ia32/full-codegen-ia32.cc ('k') | 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 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 27 matching lines...) Expand all
38 unexpected_token_number: ["Unexpected number"], 38 unexpected_token_number: ["Unexpected number"],
39 unexpected_token_string: ["Unexpected string"], 39 unexpected_token_string: ["Unexpected string"],
40 unexpected_token_identifier: ["Unexpected identifier"], 40 unexpected_token_identifier: ["Unexpected identifier"],
41 unexpected_reserved: ["Unexpected reserved word"], 41 unexpected_reserved: ["Unexpected reserved word"],
42 unexpected_strict_reserved: ["Unexpected strict mode reserved word"], 42 unexpected_strict_reserved: ["Unexpected strict mode reserved word"],
43 unexpected_eos: ["Unexpected end of input"], 43 unexpected_eos: ["Unexpected end of input"],
44 malformed_regexp: ["Invalid regular expression: /", "%0", "/: ", "%1"], 44 malformed_regexp: ["Invalid regular expression: /", "%0", "/: ", "%1"],
45 unterminated_regexp: ["Invalid regular expression: missing /"], 45 unterminated_regexp: ["Invalid regular expression: missing /"],
46 regexp_flags: ["Cannot supply flags when constructing one Reg Exp from another"], 46 regexp_flags: ["Cannot supply flags when constructing one Reg Exp from another"],
47 incompatible_method_receiver: ["Method ", "%0", " called on incompatible rece iver ", "%1"], 47 incompatible_method_receiver: ["Method ", "%0", " called on incompatible rece iver ", "%1"],
48 invalid_lhs_in_assignment: ["Invalid left-hand side in assignment"],
49 invalid_lhs_in_for_in: ["Invalid left-hand side in for-in"],
50 invalid_lhs_in_postfix_op: ["Invalid left-hand side expression in postfix operation"],
51 invalid_lhs_in_prefix_op: ["Invalid left-hand side expression in prefix o peration"],
52 multiple_defaults_in_switch: ["More than one default clause in switch statem ent"], 48 multiple_defaults_in_switch: ["More than one default clause in switch statem ent"],
53 newline_after_throw: ["Illegal newline after throw"], 49 newline_after_throw: ["Illegal newline after throw"],
54 redeclaration: ["%0", " '", "%1", "' has already been declared "], 50 redeclaration: ["%0", " '", "%1", "' has already been declared "],
55 no_catch_or_finally: ["Missing catch or finally after try"], 51 no_catch_or_finally: ["Missing catch or finally after try"],
56 unknown_label: ["Undefined label '", "%0", "'"], 52 unknown_label: ["Undefined label '", "%0", "'"],
57 uncaught_exception: ["Uncaught ", "%0"], 53 uncaught_exception: ["Uncaught ", "%0"],
58 stack_trace: ["Stack Trace:\n", "%0"], 54 stack_trace: ["Stack Trace:\n", "%0"],
59 called_non_callable: ["%0", " is not a function"], 55 called_non_callable: ["%0", " is not a function"],
60 undefined_method: ["Object ", "%1", " has no method '", "%0", "'" ], 56 undefined_method: ["Object ", "%1", " has no method '", "%0", "'" ],
61 property_not_function: ["Property '", "%0", "' of object ", "%1", " is not a function"], 57 property_not_function: ["Property '", "%0", "' of object ", "%1", " is not a function"],
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 typed_array_set_negative_offset: 122 typed_array_set_negative_offset:
127 ["Start offset is negative"], 123 ["Start offset is negative"],
128 invalid_data_view_offset: ["Start offset is outside the bounds of the buf fer"], 124 invalid_data_view_offset: ["Start offset is outside the bounds of the buf fer"],
129 invalid_data_view_length: ["Invalid data view length"], 125 invalid_data_view_length: ["Invalid data view length"],
130 invalid_data_view_accessor_offset: 126 invalid_data_view_accessor_offset:
131 ["Offset is outside the bounds of the DataView" ], 127 ["Offset is outside the bounds of the DataView" ],
132 128
133 stack_overflow: ["Maximum call stack size exceeded"], 129 stack_overflow: ["Maximum call stack size exceeded"],
134 invalid_time_value: ["Invalid time value"], 130 invalid_time_value: ["Invalid time value"],
135 invalid_count_value: ["Invalid count value"], 131 invalid_count_value: ["Invalid count value"],
132 // ReferenceError
133 invalid_lhs_in_assignment: ["Invalid left-hand side in assignment"],
134 invalid_lhs_in_for: ["Invalid left-hand side in for-loop"],
135 invalid_lhs_in_postfix_op: ["Invalid left-hand side expression in postfix operation"],
136 invalid_lhs_in_prefix_op: ["Invalid left-hand side expression in prefix o peration"],
136 // SyntaxError 137 // SyntaxError
137 paren_in_arg_string: ["Function arg string contains parenthesis"], 138 paren_in_arg_string: ["Function arg string contains parenthesis"],
138 not_isvar: ["builtin %IS_VAR: not a variable"], 139 not_isvar: ["builtin %IS_VAR: not a variable"],
139 single_function_literal: ["Single function literal required"], 140 single_function_literal: ["Single function literal required"],
140 invalid_regexp_flags: ["Invalid flags supplied to RegExp constructor '", "%0", "'"], 141 invalid_regexp_flags: ["Invalid flags supplied to RegExp constructor '", "%0", "'"],
141 invalid_regexp: ["Invalid RegExp pattern /", "%0", "/"], 142 invalid_regexp: ["Invalid RegExp pattern /", "%0", "/"],
142 illegal_break: ["Illegal break statement"], 143 illegal_break: ["Illegal break statement"],
143 illegal_continue: ["Illegal continue statement"], 144 illegal_continue: ["Illegal continue statement"],
144 illegal_return: ["Illegal return statement"], 145 illegal_return: ["Illegal return statement"],
145 illegal_let: ["Illegal let declaration outside extended mode "], 146 illegal_let: ["Illegal let declaration outside extended mode "],
(...skipping 1201 matching lines...) Expand 10 before | Expand all | Expand 10 after
1347 %GetAndClearOverflowedStackTrace(this); 1348 %GetAndClearOverflowedStackTrace(this);
1348 }; 1349 };
1349 1350
1350 %DefineOrRedefineAccessorProperty( 1351 %DefineOrRedefineAccessorProperty(
1351 boilerplate, 'stack', getter, setter, DONT_ENUM); 1352 boilerplate, 'stack', getter, setter, DONT_ENUM);
1352 1353
1353 return boilerplate; 1354 return boilerplate;
1354 } 1355 }
1355 1356
1356 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); 1357 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate();
OLDNEW
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698