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

Side by Side Diff: include/v8.h

Issue 2827733002: [modules] Allow resolve-callback to signal failure. (Closed)
Patch Set: Cleanup. Created 3 years, 8 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.h » ('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 1077 matching lines...) Expand 10 before | Expand all | Expand 10 after
1088 */ 1088 */
1089 int GetIdentityHash() const; 1089 int GetIdentityHash() const;
1090 1090
1091 typedef MaybeLocal<Module> (*ResolveCallback)(Local<Context> context, 1091 typedef MaybeLocal<Module> (*ResolveCallback)(Local<Context> context,
1092 Local<String> specifier, 1092 Local<String> specifier,
1093 Local<Module> referrer); 1093 Local<Module> referrer);
1094 1094
1095 /** 1095 /**
1096 * ModuleDeclarationInstantiation 1096 * ModuleDeclarationInstantiation
1097 * 1097 *
1098 * Returns false if an exception occurred during instantiation. 1098 * Returns false if an exception occurred during instantiation. (In the case
1099 * where the callback throws an exception, that exception is propagated.)
1099 */ 1100 */
1100 V8_WARN_UNUSED_RESULT bool Instantiate(Local<Context> context, 1101 V8_WARN_UNUSED_RESULT bool Instantiate(Local<Context> context,
1101 ResolveCallback callback); 1102 ResolveCallback callback);
1102 1103
1103 /** 1104 /**
1104 * ModuleEvaluation 1105 * ModuleEvaluation
1105 * 1106 *
1106 * Returns the completion value. 1107 * Returns the completion value.
1107 */ 1108 */
1108 V8_WARN_UNUSED_RESULT MaybeLocal<Value> Evaluate(Local<Context> context); 1109 V8_WARN_UNUSED_RESULT MaybeLocal<Value> Evaluate(Local<Context> context);
(...skipping 8952 matching lines...) Expand 10 before | Expand all | Expand 10 after
10061 */ 10062 */
10062 10063
10063 10064
10064 } // namespace v8 10065 } // namespace v8
10065 10066
10066 10067
10067 #undef TYPE_CHECK 10068 #undef TYPE_CHECK
10068 10069
10069 10070
10070 #endif // INCLUDE_V8_H_ 10071 #endif // INCLUDE_V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698