| 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;
|
|
|