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

Unified Diff: src/js/promise.js

Issue 2037653002: Some new/fixed async tests (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Adjust test expectations for Sathya's optimization Created 4 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | test/mjsunit/es6/debug-promises/async-task-event.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/js/promise.js
diff --git a/src/js/promise.js b/src/js/promise.js
index 361a5d1d767426ca03f589a58cd62503f1e6f3fd..1295363d97f65fd6e14f7ca3fa86f9c79b61093e 100644
--- a/src/js/promise.js
+++ b/src/js/promise.js
@@ -278,7 +278,9 @@ function ResolvePromise(promise, resolution) {
if (IS_CALLABLE(then)) {
// PromiseResolveThenableJob
- var id, name, instrumenting = DEBUG_IS_ACTIVE;
+ var id;
+ var name = "PromiseResolveThenableJob";
+ var instrumenting = DEBUG_IS_ACTIVE;
%EnqueueMicrotask(function() {
if (instrumenting) {
%DebugAsyncTaskEvent({ type: "willHandle", id: id, name: name });
@@ -295,7 +297,6 @@ function ResolvePromise(promise, resolution) {
});
if (instrumenting) {
id = ++lastMicrotaskId;
- name = "PromseResolveThenableJob";
%DebugAsyncTaskEvent({ type: "enqueue", id: id, name: name });
}
return;
« no previous file with comments | « no previous file | test/mjsunit/es6/debug-promises/async-task-event.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698