| Index: src/js/promise.js
|
| diff --git a/src/js/promise.js b/src/js/promise.js
|
| index dc6d8bf534287f7219f5f91a24965852eab70515..af1336c0141a9364bf07d13a321874243ee0d46e 100644
|
| --- a/src/js/promise.js
|
| +++ b/src/js/promise.js
|
| @@ -295,18 +295,12 @@ function ResolvePromise(promise, resolution) {
|
|
|
| if (IS_CALLABLE(then)) {
|
| var callbacks = CreateResolvingFunctions(promise, false);
|
| - var id, name, instrumenting = DEBUG_IS_ACTIVE;
|
| - if (instrumenting) {
|
| - if (IsPromise(resolution)) {
|
| + if (DEBUG_IS_ACTIVE && IsPromise(resolution)) {
|
| // Mark the dependency of the new promise on the resolution
|
| - SET_PRIVATE(resolution, promiseHandledBySymbol, promise);
|
| - }
|
| - id = %DebugNextMicrotaskId();
|
| - name = "PromiseResolveThenableJob";
|
| - %DebugAsyncTaskEvent("enqueue", id, name);
|
| + SET_PRIVATE(resolution, promiseHandledBySymbol, promise);
|
| }
|
| %EnqueuePromiseResolveThenableJob(
|
| - resolution, then, callbacks.resolve, callbacks.reject, id, name);
|
| + resolution, then, callbacks.resolve, callbacks.reject);
|
| return;
|
| }
|
| }
|
|
|