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

Side by Side Diff: src/messages.js

Issue 118553003: Upgrade Symbol implementation to match current ES6 behavior. (Closed) Base URL: git://github.com/v8/v8.git@bleeding_edge
Patch Set: Some test improvements. 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
« no previous file with comments | « no previous file | src/objects.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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 strict_function: ["In strict mode code, functions can only be de clared at top level or immediately within another function." ], 177 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"], 178 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"], 179 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"], 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"],
181 strict_caller: ["Illegal access to a strict mode caller functi on."], 181 strict_caller: ["Illegal access to a strict mode caller functi on."],
182 unprotected_let: ["Illegal let declaration in unprotected statem ent context."], 182 unprotected_let: ["Illegal let declaration in unprotected statem ent context."],
183 unprotected_const: ["Illegal const declaration in unprotected stat ement context."], 183 unprotected_const: ["Illegal const declaration in unprotected stat ement context."],
184 cant_prevent_ext_external_array_elements: ["Cannot prevent extension of an obj ect with external array elements"], 184 cant_prevent_ext_external_array_elements: ["Cannot prevent extension of an obj ect with external array elements"],
185 redef_external_array_element: ["Cannot redefine a property of an object with external array elements"], 185 redef_external_array_element: ["Cannot redefine a property of an object with external array elements"],
186 harmony_const_assign: ["Assignment to constant variable."], 186 harmony_const_assign: ["Assignment to constant variable."],
187 symbol_to_string: ["Conversion from symbol to string"], 187 symbol_to_string: ["Cannot convert a Symbol value to a string"],
188 symbol_to_primitive: ["Cannot convert a Symbol wrapper object to a p rimitive value"],
188 invalid_module_path: ["Module does not export '", "%0", "', or expor t is not itself a module"], 189 invalid_module_path: ["Module does not export '", "%0", "', or expor t is not itself a module"],
189 module_type_error: ["Module '", "%0", "' used improperly"], 190 module_type_error: ["Module '", "%0", "' used improperly"],
190 module_export_undefined: ["Export '", "%0", "' is not defined in module" ] 191 module_export_undefined: ["Export '", "%0", "' is not defined in module" ]
191 }; 192 };
192 193
193 194
194 function FormatString(format, args) { 195 function FormatString(format, args) {
195 var result = ""; 196 var result = "";
196 var arg_num = 0; 197 var arg_num = 0;
197 for (var i = 0; i < format.length; i++) { 198 for (var i = 0; i < format.length; i++) {
(...skipping 1160 matching lines...) Expand 10 before | Expand all | Expand 10 after
1358 %GetAndClearOverflowedStackTrace(this); 1359 %GetAndClearOverflowedStackTrace(this);
1359 }; 1360 };
1360 1361
1361 %DefineOrRedefineAccessorProperty( 1362 %DefineOrRedefineAccessorProperty(
1362 boilerplate, 'stack', getter, setter, DONT_ENUM); 1363 boilerplate, 'stack', getter, setter, DONT_ENUM);
1363 1364
1364 return boilerplate; 1365 return boilerplate;
1365 } 1366 }
1366 1367
1367 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); 1368 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate();
OLDNEW
« no previous file with comments | « no previous file | src/objects.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698