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

Side by Side Diff: src/messages.js

Issue 378303003: Make `let` usable as an identifier in ES6 sloppy mode. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Comments Created 6 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.cc » ('j') | src/parser.cc » ('J')
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 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // ------------------------------------------------------------------- 5 // -------------------------------------------------------------------
6 6
7 var kMessages = { 7 var kMessages = {
8 // Error 8 // Error
9 cyclic_proto: ["Cyclic __proto__ value"], 9 cyclic_proto: ["Cyclic __proto__ value"],
10 code_gen_from_strings: ["%0"], 10 code_gen_from_strings: ["%0"],
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 invalid_lhs_in_prefix_op: ["Invalid left-hand side expression in prefix o peration"], 120 invalid_lhs_in_prefix_op: ["Invalid left-hand side expression in prefix o peration"],
121 // SyntaxError 121 // SyntaxError
122 paren_in_arg_string: ["Function arg string contains parenthesis"], 122 paren_in_arg_string: ["Function arg string contains parenthesis"],
123 not_isvar: ["builtin %IS_VAR: not a variable"], 123 not_isvar: ["builtin %IS_VAR: not a variable"],
124 single_function_literal: ["Single function literal required"], 124 single_function_literal: ["Single function literal required"],
125 invalid_regexp_flags: ["Invalid flags supplied to RegExp constructor '", "%0", "'"], 125 invalid_regexp_flags: ["Invalid flags supplied to RegExp constructor '", "%0", "'"],
126 invalid_regexp: ["Invalid RegExp pattern /", "%0", "/"], 126 invalid_regexp: ["Invalid RegExp pattern /", "%0", "/"],
127 illegal_break: ["Illegal break statement"], 127 illegal_break: ["Illegal break statement"],
128 illegal_continue: ["Illegal continue statement"], 128 illegal_continue: ["Illegal continue statement"],
129 illegal_return: ["Illegal return statement"], 129 illegal_return: ["Illegal return statement"],
130 illegal_let: ["Illegal let declaration outside extended mode "],
131 error_loading_debugger: ["Error loading debugger"], 130 error_loading_debugger: ["Error loading debugger"],
132 no_input_to_regexp: ["No input to ", "%0"], 131 no_input_to_regexp: ["No input to ", "%0"],
133 invalid_json: ["String '", "%0", "' is not valid JSON"], 132 invalid_json: ["String '", "%0", "' is not valid JSON"],
134 circular_structure: ["Converting circular structure to JSON"], 133 circular_structure: ["Converting circular structure to JSON"],
135 called_on_non_object: ["%0", " called on non-object"], 134 called_on_non_object: ["%0", " called on non-object"],
136 called_on_null_or_undefined: ["%0", " called on null or undefined"], 135 called_on_null_or_undefined: ["%0", " called on null or undefined"],
137 array_indexof_not_defined: ["Array.getIndexOf: Argument undefined"], 136 array_indexof_not_defined: ["Array.getIndexOf: Argument undefined"],
138 object_not_extensible: ["Can't add property ", "%0", ", object is not extensible"], 137 object_not_extensible: ["Can't add property ", "%0", ", object is not extensible"],
139 illegal_access: ["Illegal access"], 138 illegal_access: ["Illegal access"],
140 invalid_cached_data_function: ["Invalid cached data for function ", "%0"], 139 invalid_cached_data_function: ["Invalid cached data for function ", "%0"],
(...skipping 1141 matching lines...) Expand 10 before | Expand all | Expand 10 after
1282 function SetUpStackOverflowBoilerplate() { 1281 function SetUpStackOverflowBoilerplate() {
1283 var boilerplate = MakeRangeError('stack_overflow', []); 1282 var boilerplate = MakeRangeError('stack_overflow', []);
1284 1283
1285 %DefineAccessorPropertyUnchecked( 1284 %DefineAccessorPropertyUnchecked(
1286 boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM); 1285 boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM);
1287 1286
1288 return boilerplate; 1287 return boilerplate;
1289 } 1288 }
1290 1289
1291 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); 1290 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate();
OLDNEW
« no previous file with comments | « no previous file | src/parser.cc » ('j') | src/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698