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

Side by Side Diff: src/messages.js

Issue 770333005: Implement the `RegExp.prototype.flags` getter (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Move to separate harmony-regexp.js file Created 6 years 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
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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 non_method: ["'super' is referenced from non-method"], 44 non_method: ["'super' is referenced from non-method"],
45 unsupported_super: ["Unsupported reference to 'super'"], 45 unsupported_super: ["Unsupported reference to 'super'"],
46 non_object_property_load: ["Cannot read property '", "%0", "' of ", "%1"] , 46 non_object_property_load: ["Cannot read property '", "%0", "' of ", "%1"] ,
47 non_object_property_store: ["Cannot set property '", "%0", "' of ", "%1"], 47 non_object_property_store: ["Cannot set property '", "%0", "' of ", "%1"],
48 with_expression: ["%0", " has no properties"], 48 with_expression: ["%0", " has no properties"],
49 illegal_invocation: ["Illegal invocation"], 49 illegal_invocation: ["Illegal invocation"],
50 no_setter_in_callback: ["Cannot set property ", "%0", " of ", "%1", " which has only a getter"], 50 no_setter_in_callback: ["Cannot set property ", "%0", " of ", "%1", " which has only a getter"],
51 apply_non_function: ["Function.prototype.apply was called on ", "%0 ", ", which is a ", "%1", " and not a function"], 51 apply_non_function: ["Function.prototype.apply was called on ", "%0 ", ", which is a ", "%1", " and not a function"],
52 apply_wrong_args: ["Function.prototype.apply: Arguments list has wrong type"], 52 apply_wrong_args: ["Function.prototype.apply: Arguments list has wrong type"],
53 toMethod_non_function: ["Function.prototype.toMethod was called on ", "%0", ", which is a ", "%1", " and not a function"], 53 toMethod_non_function: ["Function.prototype.toMethod was called on ", "%0", ", which is a ", "%1", " and not a function"],
54 toMethod_non_object: ["Function.prototype.toMethod: home object ", " %0", " is not an object"], 54 home_object_non_object: ["%0", ": home object ", "%1", " is not an obje ct"],
55 invalid_in_operator_use: ["Cannot use 'in' operator to search for '", "% 0", "' in ", "%1"], 55 invalid_in_operator_use: ["Cannot use 'in' operator to search for '", "% 0", "' in ", "%1"],
56 instanceof_function_expected: ["Expecting a function in instanceof check, but got ", "%0"], 56 instanceof_function_expected: ["Expecting a function in instanceof check, but got ", "%0"],
57 instanceof_nonobject_proto: ["Function has non-object prototype '", "%0", " ' in instanceof check"], 57 instanceof_nonobject_proto: ["Function has non-object prototype '", "%0", " ' in instanceof check"],
58 undefined_or_null_to_object: ["Cannot convert undefined or null to object"], 58 undefined_or_null_to_object: ["Cannot convert undefined or null to object"],
59 reduce_no_initial: ["Reduce of empty array with no initial value"] , 59 reduce_no_initial: ["Reduce of empty array with no initial value"] ,
60 getter_must_be_callable: ["Getter must be a function: ", "%0"], 60 getter_must_be_callable: ["Getter must be a function: ", "%0"],
61 setter_must_be_callable: ["Setter must be a function: ", "%0"], 61 setter_must_be_callable: ["Setter must be a function: ", "%0"],
62 value_and_accessor: ["Invalid property. A property cannot both hav e accessors and be writable or have a value, ", "%0"], 62 value_and_accessor: ["Invalid property. A property cannot both hav e accessors and be writable or have a value, ", "%0"],
63 proto_object_or_null: ["Object prototype may only be an Object or nul l: ", "%0"], 63 proto_object_or_null: ["Object prototype may only be an Object or nul l: ", "%0"],
64 property_desc_object: ["Property description must be an object: ", "% 0"], 64 property_desc_object: ["Property description must be an object: ", "% 0"],
(...skipping 1251 matching lines...) Expand 10 before | Expand all | Expand 10 after
1316 function SetUpStackOverflowBoilerplate() { 1316 function SetUpStackOverflowBoilerplate() {
1317 var boilerplate = MakeRangeError('stack_overflow', []); 1317 var boilerplate = MakeRangeError('stack_overflow', []);
1318 1318
1319 %DefineAccessorPropertyUnchecked( 1319 %DefineAccessorPropertyUnchecked(
1320 boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM); 1320 boilerplate, 'stack', StackTraceGetter, StackTraceSetter, DONT_ENUM);
1321 1321
1322 return boilerplate; 1322 return boilerplate;
1323 } 1323 }
1324 1324
1325 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate(); 1325 var kStackOverflowBoilerplate = SetUpStackOverflowBoilerplate();
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698