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

Side by Side Diff: src/js/async-await.js

Issue 2513413002: [promises] Do not export GlobalPromise (Closed)
Patch Set: Created 4 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 | « no previous file | src/js/promise.js » ('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 2016 the V8 project authors. All rights reserved. 1 // Copyright 2016 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 (function(global, utils, extrasUtils) { 5 (function(global, utils, extrasUtils) {
6 6
7 "use strict"; 7 "use strict";
8 8
9 %CheckIsBootstrapping(); 9 %CheckIsBootstrapping();
10 10
11 // ------------------------------------------------------------------- 11 // -------------------------------------------------------------------
12 // Imports 12 // Imports
13 13
14 var AsyncFunctionNext; 14 var AsyncFunctionNext;
15 var AsyncFunctionThrow; 15 var AsyncFunctionThrow;
16 var GlobalPromise;
17 var IsPromise; 16 var IsPromise;
18 var CreateInternalPromiseCapability; 17 var CreateInternalPromiseCapability;
19 var PerformPromiseThen; 18 var PerformPromiseThen;
20 var PromiseCreate; 19 var PromiseCreate;
21 var PromiseNextMicrotaskID; 20 var PromiseNextMicrotaskID;
22 var RejectPromise; 21 var RejectPromise;
23 var ResolvePromise; 22 var ResolvePromise;
24 23
25 utils.Import(function(from) { 24 utils.Import(function(from) {
26 AsyncFunctionNext = from.AsyncFunctionNext; 25 AsyncFunctionNext = from.AsyncFunctionNext;
27 AsyncFunctionThrow = from.AsyncFunctionThrow; 26 AsyncFunctionThrow = from.AsyncFunctionThrow;
28 GlobalPromise = from.GlobalPromise;
29 IsPromise = from.IsPromise; 27 IsPromise = from.IsPromise;
30 CreateInternalPromiseCapability = from.CreateInternalPromiseCapability; 28 CreateInternalPromiseCapability = from.CreateInternalPromiseCapability;
31 PerformPromiseThen = from.PerformPromiseThen; 29 PerformPromiseThen = from.PerformPromiseThen;
32 PromiseCreate = from.PromiseCreate; 30 PromiseCreate = from.PromiseCreate;
33 RejectPromise = from.RejectPromise; 31 RejectPromise = from.RejectPromise;
34 ResolvePromise = from.ResolvePromise; 32 ResolvePromise = from.ResolvePromise;
35 }); 33 });
36 34
37 var promiseAsyncStackIDSymbol = 35 var promiseAsyncStackIDSymbol =
38 utils.ImportNow("promise_async_stack_id_symbol"); 36 utils.ImportNow("promise_async_stack_id_symbol");
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 165
168 %InstallToContext([ 166 %InstallToContext([
169 "async_function_await_caught", AsyncFunctionAwaitCaught, 167 "async_function_await_caught", AsyncFunctionAwaitCaught,
170 "async_function_await_uncaught", AsyncFunctionAwaitUncaught, 168 "async_function_await_uncaught", AsyncFunctionAwaitUncaught,
171 "reject_promise_no_debug_event", RejectPromiseNoDebugEvent, 169 "reject_promise_no_debug_event", RejectPromiseNoDebugEvent,
172 "async_function_promise_create", AsyncFunctionPromiseCreate, 170 "async_function_promise_create", AsyncFunctionPromiseCreate,
173 "async_function_promise_release", AsyncFunctionPromiseRelease, 171 "async_function_promise_release", AsyncFunctionPromiseRelease,
174 ]); 172 ]);
175 173
176 }) 174 })
OLDNEW
« no previous file with comments | « no previous file | src/js/promise.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698