From: Evan You Date: Thu, 2 Sep 2021 18:18:52 +0000 (-0400) Subject: chore: remove wrongly placed type casts X-Git-Tag: v3.2.8~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fb43aab117698eb8a8bbb07339bdc8892ec69e53;p=thirdparty%2Fvuejs%2Fcore.git chore: remove wrongly placed type casts --- diff --git a/packages/sfc-playground/src/output/srcdoc.html b/packages/sfc-playground/src/output/srcdoc.html index d42b506ee1..91dd9e1adc 100644 --- a/packages/sfc-playground/src/output/srcdoc.html +++ b/packages/sfc-playground/src/output/srcdoc.html @@ -61,7 +61,7 @@ } window.__next__ = undefined send_ok() - } catch (e: any) { + } catch (e) { send_error(e.message, e.stack); } } @@ -109,7 +109,7 @@ } try { parent.postMessage({ action: 'error', value: error }, '*'); - } catch (e: any) { + } catch (e) { parent.postMessage({ action: 'error', value: msg }, '*'); } } @@ -121,7 +121,7 @@ } try { parent.postMessage({ action: 'unhandledrejection', value: event.reason }, '*'); - } catch (e: any) { + } catch (e) { parent.postMessage({ action: 'unhandledrejection', value: event.reason.message }, '*'); } }); diff --git a/scripts/release.js b/scripts/release.js index 7f3ea402b1..482367a01c 100644 --- a/scripts/release.js +++ b/scripts/release.js @@ -220,7 +220,7 @@ async function publishPackage(pkgName, version, runIfNotDry) { } ) console.log(chalk.green(`Successfully published ${pkgName}@${version}`)) - } catch (e: any) { + } catch (e) { if (e.stderr.match(/previously published/)) { console.log(chalk.red(`Skipping already published: ${pkgName}`)) } else {