[promises] reorder cases in Torque PromiseLazyDeopt.

Change-Id: I7583d4c3f798babb1b8cd23da8abbebf23f53331
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/1992604
Auto-Submit: Joshua Litt <joshualitt@chromium.org>
Commit-Queue: Tobias Tebbi <tebbi@chromium.org>
Reviewed-by: Tobias Tebbi <tebbi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#65653}
This commit is contained in:
Joshua Litt 2020-01-08 15:20:14 -08:00 committed by Commit Bot
parent 2226bfcd89
commit 97f6ac945e

View File

@ -530,11 +530,11 @@ namespace promise {
promise: JSAny, reject: JSAny, exception: JSAny|TheHole,
_result: JSAny): JSAny {
typeswitch (exception) {
case (TheHole): {
}
case (e: JSAny): {
Call(context, reject, Undefined, e);
}
case (TheHole): {
}
}
return promise;
}