Commit 97f6ac94 authored by Joshua Litt's avatar Joshua Litt Committed by Commit Bot

[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: 's avatarTobias Tebbi <tebbi@chromium.org>
Cr-Commit-Position: refs/heads/master@{#65653}
parent 2226bfcd
......@@ -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;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment