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

Side by Side Diff: src/messages.h

Issue 1441043002: [proxies] Implement [[PreventExtensions]] and [[IsExtensible]]. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Various changes. Created 5 years, 1 month 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 | « src/js/v8natives.js ('k') | src/objects.h » ('j') | src/objects.h » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2006-2008 the V8 project authors. All rights reserved. 1 // Copyright 2006-2008 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 // The infrastructure used for (localized) message reporting in V8. 5 // The infrastructure used for (localized) message reporting in V8.
6 // 6 //
7 // Note: there's a big unresolved issue about ownership of the data 7 // Note: there's a big unresolved issue about ownership of the data
8 // structures used by this framework. 8 // structures used by this framework.
9 9
10 #ifndef V8_MESSAGES_H_ 10 #ifndef V8_MESSAGES_H_
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 T(OrdinaryFunctionCalledAsConstructor, \ 175 T(OrdinaryFunctionCalledAsConstructor, \
176 "Function object that's not a constructor was created with new") \ 176 "Function object that's not a constructor was created with new") \
177 T(PromiseCyclic, "Chaining cycle detected for promise %") \ 177 T(PromiseCyclic, "Chaining cycle detected for promise %") \
178 T(PropertyDescObject, "Property description must be an object: %") \ 178 T(PropertyDescObject, "Property description must be an object: %") \
179 T(PropertyNotFunction, "Property '%' of object % is not a function") \ 179 T(PropertyNotFunction, "Property '%' of object % is not a function") \
180 T(ProtoObjectOrNull, "Object prototype may only be an Object or null: %") \ 180 T(ProtoObjectOrNull, "Object prototype may only be an Object or null: %") \
181 T(PrototypeParentNotAnObject, \ 181 T(PrototypeParentNotAnObject, \
182 "Class extends value does not have valid prototype property %") \ 182 "Class extends value does not have valid prototype property %") \
183 T(ProxyHandlerDeleteFailed, \ 183 T(ProxyHandlerDeleteFailed, \
184 "Proxy handler % did not return a boolean value from 'delete' trap") \ 184 "Proxy handler % did not return a boolean value from 'delete' trap") \
185 T(ProxyHandlerNonObject, "Proxy.create called with non-object as handler") \ 185 T(ProxyHandlerNonObject, "Cannot create proxy with non-object as handler") \
186 T(ProxyHandlerReturned, "Proxy handler % returned % from '%' trap") \ 186 T(ProxyHandlerReturned, "Proxy handler % returned % from '%' trap") \
187 T(ProxyHandlerTrapMissing, "Proxy handler % has no '%' trap") \ 187 T(ProxyHandlerTrapMissing, "Proxy handler % has no '%' trap") \
188 T(ProxyHandlerTrapMustBeCallable, \ 188 T(ProxyHandlerTrapMustBeCallable, \
189 "Proxy handler %0 has non-callable '%' trap") \ 189 "Proxy handler %0 has non-callable '%' trap") \
190 T(ProxyIsExtensibleViolatesInvariant, \
191 "Result of trap 'isExtensible' is inconsistent with proxy's target") \
190 T(ProxyNonObjectPropNames, "Trap '%' returned non-object %") \ 192 T(ProxyNonObjectPropNames, "Trap '%' returned non-object %") \
193 T(ProxyPreventExtensionsViolatesInvariant, \
194 "Trap 'preventExtensions' returned true but the proxy's target is " \
195 "extensible") \
191 T(ProxyPropNotConfigurable, \ 196 T(ProxyPropNotConfigurable, \
192 "Proxy handler % returned non-configurable descriptor for property '%' " \ 197 "Proxy handler % returned non-configurable descriptor for property '%' " \
193 "from '%' trap") \ 198 "from '%' trap") \
194 T(ProxyRepeatedPropName, "Trap '%' returned repeated property name '%'") \ 199 T(ProxyRepeatedPropName, "Trap '%' returned repeated property name '%'") \
200 T(ProxyRevoked, "Cannot perform '%' on a proxy that has been revoked") \
195 T(ProxyTargetNotExtensible, "Proxy target is not extensible") \ 201 T(ProxyTargetNotExtensible, "Proxy target is not extensible") \
196 T(ProxyTargetNonObject, "Proxy.% called with non-object as target") \ 202 T(ProxyTargetNonObject, "Proxy target is non-object") \
197 T(ProxyTargetPropNotConfigurable, \ 203 T(ProxyTargetPropNotConfigurable, \
198 "Proxy target property '%' is not configurable") \ 204 "Proxy target property '%' is not configurable") \
199 T(ProxyTrapFunctionExpected, \ 205 T(ProxyTrapFunctionExpected, \
200 "Proxy.createFunction called with non-function for '%' trap") \ 206 "Proxy.createFunction called with non-function for '%' trap") \
201 T(RedefineDisallowed, "Cannot redefine property: %") \ 207 T(RedefineDisallowed, "Cannot redefine property: %") \
202 T(RedefineExternalArray, \ 208 T(RedefineExternalArray, \
203 "Cannot redefine a property of an object with external array elements") \ 209 "Cannot redefine a property of an object with external array elements") \
204 T(ReduceNoInitial, "Reduce of empty array with no initial value") \ 210 T(ReduceNoInitial, "Reduce of empty array with no initial value") \
205 T(RegExpFlags, \ 211 T(RegExpFlags, \
206 "Cannot supply flags when constructing one RegExp from another") \ 212 "Cannot supply flags when constructing one RegExp from another") \
(...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after
501 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty( 507 static MUST_USE_RESULT MaybeHandle<String> GetStringifiedProperty(
502 Isolate* isolate, LookupIterator* property_lookup, 508 Isolate* isolate, LookupIterator* property_lookup,
503 Handle<String> default_value); 509 Handle<String> default_value);
504 510
505 List<Handle<JSObject> > visited_; 511 List<Handle<JSObject> > visited_;
506 }; 512 };
507 } // namespace internal 513 } // namespace internal
508 } // namespace v8 514 } // namespace v8
509 515
510 #endif // V8_MESSAGES_H_ 516 #endif // V8_MESSAGES_H_
OLDNEW
« no previous file with comments | « src/js/v8natives.js ('k') | src/objects.h » ('j') | src/objects.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698