[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:
parent
2226bfcd89
commit
97f6ac945e
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user