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

Side by Side Diff: src/js/promise.js

Issue 2655253004: [inspector] introduced stepIntoAsync for chained callbacks (Closed)
Patch Set: fixed async/await and added tests Created 3 years, 10 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 | « src/inspector/v8-debugger-agent-impl.cc ('k') | 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 (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
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 if (instrumenting && %is_promise(throwawayPromise)) { 114 if (instrumenting && %is_promise(throwawayPromise)) {
115 SET_PRIVATE(throwawayPromise, promiseHandledBySymbol, deferred.promise); 115 SET_PRIVATE(throwawayPromise, promiseHandledBySymbol, deferred.promise);
116 } 116 }
117 } 117 }
118 } catch (e) { 118 } catch (e) {
119 %_Call(deferred.reject, UNDEFINED, e); 119 %_Call(deferred.reject, UNDEFINED, e);
120 } 120 }
121 return deferred.promise; 121 return deferred.promise;
122 } 122 }
123 123
124 %DebugMarkAsPromiseBuiltin(PromiseAll);
125 %DebugMarkAsPromiseBuiltin(PromiseRace);
126
124 // ------------------------------------------------------------------- 127 // -------------------------------------------------------------------
125 // Install exported functions. 128 // Install exported functions.
126 129
127 utils.InstallFunctions(GlobalPromise, DONT_ENUM, [ 130 utils.InstallFunctions(GlobalPromise, DONT_ENUM, [
128 "all", PromiseAll, 131 "all", PromiseAll,
129 "race", PromiseRace, 132 "race", PromiseRace,
130 ]); 133 ]);
131 134
132 }) 135 })
OLDNEW
« no previous file with comments | « src/inspector/v8-debugger-agent-impl.cc ('k') | src/objects.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698