diff --git a/src/builtins/promise-abstract-operations.tq b/src/builtins/promise-abstract-operations.tq index e1f0a75e46..e890bddab1 100644 --- a/src/builtins/promise-abstract-operations.tq +++ b/src/builtins/promise-abstract-operations.tq @@ -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; }