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

Side by Side Diff: src/messages.h

Issue 1531073004: [promise] Make Promise.reject match spec, and validate promise capabilities (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Re-add and skip test Created 4 years, 11 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
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 162 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 T(ObserveNonFunction, "Object.% cannot deliver to non-function") \ 173 T(ObserveNonFunction, "Object.% cannot deliver to non-function") \
174 T(ObserveNonObject, "Object.% cannot % non-object") \ 174 T(ObserveNonObject, "Object.% cannot % non-object") \
175 T(ObserveNotifyNonNotifier, "notify called on non-notifier object") \ 175 T(ObserveNotifyNonNotifier, "notify called on non-notifier object") \
176 T(ObservePerformNonFunction, "Cannot perform non-function") \ 176 T(ObservePerformNonFunction, "Cannot perform non-function") \
177 T(ObservePerformNonString, "Invalid non-string changeType") \ 177 T(ObservePerformNonString, "Invalid non-string changeType") \
178 T(ObserveTypeNonString, \ 178 T(ObserveTypeNonString, \
179 "Invalid changeRecord with non-string 'type' property") \ 179 "Invalid changeRecord with non-string 'type' property") \
180 T(OrdinaryFunctionCalledAsConstructor, \ 180 T(OrdinaryFunctionCalledAsConstructor, \
181 "Function object that's not a constructor was created with new") \ 181 "Function object that's not a constructor was created with new") \
182 T(PromiseCyclic, "Chaining cycle detected for promise %") \ 182 T(PromiseCyclic, "Chaining cycle detected for promise %") \
183 T(PromiseExecutorAlreadyInvoked, \
184 "Promise executor has already been invoked with non-undefined arguments") \
183 T(PropertyDescObject, "Property description must be an object: %") \ 185 T(PropertyDescObject, "Property description must be an object: %") \
184 T(PropertyNotFunction, \ 186 T(PropertyNotFunction, \
185 "'%' returned for property '%' of object '%' is not a function") \ 187 "'%' returned for property '%' of object '%' is not a function") \
186 T(ProtoObjectOrNull, "Object prototype may only be an Object or null: %") \ 188 T(ProtoObjectOrNull, "Object prototype may only be an Object or null: %") \
187 T(PrototypeParentNotAnObject, \ 189 T(PrototypeParentNotAnObject, \
188 "Class extends value does not have valid prototype property %") \ 190 "Class extends value does not have valid prototype property %") \
189 T(ProxyConstructNonObject, \ 191 T(ProxyConstructNonObject, \
190 "'construct' on proxy: trap returned non-object ('%')") \ 192 "'construct' on proxy: trap returned non-object ('%')") \
191 T(ProxyDefinePropertyNonConfigurable, \ 193 T(ProxyDefinePropertyNonConfigurable, \
192 "'defineProperty' on proxy: trap returned truish for defining " \ 194 "'defineProperty' on proxy: trap returned truish for defining " \
(...skipping 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
539 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data); 541 static Handle<String> GetMessage(Isolate* isolate, Handle<Object> data);
540 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate, 542 static base::SmartArrayPointer<char> GetLocalizedMessage(Isolate* isolate,
541 Handle<Object> data); 543 Handle<Object> data);
542 }; 544 };
543 545
544 546
545 } // namespace internal 547 } // namespace internal
546 } // namespace v8 548 } // namespace v8
547 549
548 #endif // V8_MESSAGES_H_ 550 #endif // V8_MESSAGES_H_
OLDNEW
« src/js/promise.js ('K') | « src/js/promise.js ('k') | test/mjsunit/mjsunit.status » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698