|
|
@ -59,12 +59,12 @@ export function handle_promise(promise, info) {
|
|
|
|
update(info.then, 1, info.value, value);
|
|
|
|
update(info.then, 1, info.value, value);
|
|
|
|
set_current_component(null);
|
|
|
|
set_current_component(null);
|
|
|
|
}, error => {
|
|
|
|
}, error => {
|
|
|
|
if (!info.hasCatch) {
|
|
|
|
|
|
|
|
throw error;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
set_current_component(current_component);
|
|
|
|
set_current_component(current_component);
|
|
|
|
update(info.catch, 2, info.error, error);
|
|
|
|
update(info.catch, 2, info.error, error);
|
|
|
|
set_current_component(null);
|
|
|
|
set_current_component(null);
|
|
|
|
|
|
|
|
if (!info.hasCatch) {
|
|
|
|
|
|
|
|
throw error;
|
|
|
|
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
// if we previously had a then/catch block, destroy it
|
|
|
|
// if we previously had a then/catch block, destroy it
|
|
|
|