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

Side by Side Diff: src/messages.js

Issue 7992005: Block scoped const variables. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Comments, function variable mode, preparser. Created 9 years, 2 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/objects.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 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 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 "strict_reserved_word", ["Use of future reserved word in strict mo de"], 233 "strict_reserved_word", ["Use of future reserved word in strict mo de"],
234 "strict_delete", ["Delete of an unqualified identifier in s trict mode."], 234 "strict_delete", ["Delete of an unqualified identifier in s trict mode."],
235 "strict_delete_property", ["Cannot delete property '", "%0", "' of " , "%1"], 235 "strict_delete_property", ["Cannot delete property '", "%0", "' of " , "%1"],
236 "strict_const", ["Use of const in strict mode."], 236 "strict_const", ["Use of const in strict mode."],
237 "strict_function", ["In strict mode code, functions can only be declared at top level or immediately within another function." ], 237 "strict_function", ["In strict mode code, functions can only be declared at top level or immediately within another function." ],
238 "strict_read_only_property", ["Cannot assign to read only property '", "%0", "' of ", "%1"], 238 "strict_read_only_property", ["Cannot assign to read only property '", "%0", "' of ", "%1"],
239 "strict_cannot_assign", ["Cannot assign to read only '", "%0", "' in strict mode"], 239 "strict_cannot_assign", ["Cannot assign to read only '", "%0", "' in strict mode"],
240 "strict_poison_pill", ["'caller', 'callee', and 'arguments' prop erties may not be accessed on strict mode functions or the arguments objects for calls to them"], 240 "strict_poison_pill", ["'caller', 'callee', and 'arguments' prop erties may not be accessed on strict mode functions or the arguments objects for calls to them"],
241 "strict_caller", ["Illegal access to a strict mode caller f unction."], 241 "strict_caller", ["Illegal access to a strict mode caller f unction."],
242 "unprotected_let", ["Illegal let declaration in unprotected s tatement context."], 242 "unprotected_let", ["Illegal let declaration in unprotected s tatement context."],
243 "unprotected_const", ["Illegal const declaration in unprotected statement context."],
243 "cant_prevent_ext_external_array_elements", ["Cannot prevent extension of an object with external array elements"], 244 "cant_prevent_ext_external_array_elements", ["Cannot prevent extension of an object with external array elements"],
244 "redef_external_array_element", ["Cannot redefine a property of an object with external array elements"], 245 "redef_external_array_element", ["Cannot redefine a property of an object with external array elements"],
245 ]; 246 ];
246 var messages = { __proto__ : null }; 247 var messages = { __proto__ : null };
247 var desc = new PropertyDescriptor(); 248 var desc = new PropertyDescriptor();
248 desc.setConfigurable(false); 249 desc.setConfigurable(false);
249 desc.setEnumerable(false); 250 desc.setEnumerable(false);
250 desc.setWritable(false); 251 desc.setWritable(false);
251 for (var i = 0; i < messagesDictionary.length; i += 2) { 252 for (var i = 0; i < messagesDictionary.length; i += 2) {
252 var key = messagesDictionary[i]; 253 var key = messagesDictionary[i];
(...skipping 932 matching lines...) Expand 10 before | Expand all | Expand 10 after
1185 throw e; 1186 throw e;
1186 } 1187 }
1187 } 1188 }
1188 1189
1189 1190
1190 InstallFunctions($Error.prototype, DONT_ENUM, ['toString', errorToString]); 1191 InstallFunctions($Error.prototype, DONT_ENUM, ['toString', errorToString]);
1191 1192
1192 // Boilerplate for exceptions for stack overflows. Used from 1193 // Boilerplate for exceptions for stack overflows. Used from
1193 // Isolate::StackOverflow(). 1194 // Isolate::StackOverflow().
1194 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []); 1195 const kStackOverflowBoilerplate = MakeRangeError('stack_overflow', []);
OLDNEW
« no previous file with comments | « src/ia32/full-codegen-ia32.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698