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

Side by Side Diff: include/v8.h

Issue 622783002: Make PromiseRejectCallback fire after end-of-turn. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 6 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 | « no previous file | src/api.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 // 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 /** \mainpage V8 API Reference Guide 5 /** \mainpage V8 API Reference Guide
6 * 6 *
7 * V8 is Google's open source JavaScript engine. 7 * V8 is Google's open source JavaScript engine.
8 * 8 *
9 * This set of documents provides reference material generated from the 9 * This set of documents provides reference material generated from the
10 * V8 header file, include/v8.h. 10 * V8 header file, include/v8.h.
(...skipping 2834 matching lines...) Expand 10 before | Expand all | Expand 10 after
2845 /** 2845 /**
2846 * Register a resolution/rejection handler with a promise. 2846 * Register a resolution/rejection handler with a promise.
2847 * The handler is given the respective resolution/rejection value as 2847 * The handler is given the respective resolution/rejection value as
2848 * an argument. If the promise is already resolved/rejected, the handler is 2848 * an argument. If the promise is already resolved/rejected, the handler is
2849 * invoked at the end of turn. 2849 * invoked at the end of turn.
2850 */ 2850 */
2851 Local<Promise> Chain(Handle<Function> handler); 2851 Local<Promise> Chain(Handle<Function> handler);
2852 Local<Promise> Catch(Handle<Function> handler); 2852 Local<Promise> Catch(Handle<Function> handler);
2853 Local<Promise> Then(Handle<Function> handler); 2853 Local<Promise> Then(Handle<Function> handler);
2854 2854
2855 /**
2856 * Returns true if the promise has at least one derived promise, and
2857 * therefore resolve/reject handlers (including default handler).
2858 */
2859 bool HasHandler();
2860
2861 V8_INLINE static Promise* Cast(Value* obj); 2855 V8_INLINE static Promise* Cast(Value* obj);
2862 2856
2863 private: 2857 private:
2864 Promise(); 2858 Promise();
2865 static void CheckCast(Value* obj); 2859 static void CheckCast(Value* obj);
2866 }; 2860 };
2867 2861
2868 2862
2869 #ifndef V8_ARRAY_BUFFER_INTERNAL_FIELD_COUNT 2863 #ifndef V8_ARRAY_BUFFER_INTERNAL_FIELD_COUNT
2870 // The number of required internal fields can be defined by embedder. 2864 // The number of required internal fields can be defined by embedder.
(...skipping 4162 matching lines...) Expand 10 before | Expand all | Expand 10 after
7033 */ 7027 */
7034 7028
7035 7029
7036 } // namespace v8 7030 } // namespace v8
7037 7031
7038 7032
7039 #undef TYPE_CHECK 7033 #undef TYPE_CHECK
7040 7034
7041 7035
7042 #endif // V8_H_ 7036 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698