Merge pull request #780 from nofficalfs/Dev-Enhancement-Noname

fix: rebase error.
This commit is contained in:
Spmario233 2024-01-13 10:39:55 +08:00 committed by GitHub
commit 7369c6af78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View File

@ -9796,6 +9796,7 @@ class Create extends Uninstantable {
}
if (node._replaceButton) {
var intro = ui.create.div('.button.replaceButton', node);
intro[lib.experimental.symbol.itemType] = 'button';
node.node.replaceButton = intro;
intro.innerHTML = '切换';
intro._node = node;

View File

@ -1,7 +1,7 @@
/**
* 关于除已实现浏览器外其余浏览器的异步错误处理
*
* 很遗憾对于这类浏览器因为标准未涉及报错栈堆或地址及行列号故我们只能直接暴力throw出我们捕获道德错误
* 很遗憾对于这类浏览器因为标准未涉及报错栈堆或地址及行列号故我们只能直接暴力throw出我们捕获道德错误
*
* 尽管我们还是会为了这类浏览器判断是不是捕获到了一个`Error`
*
@ -20,6 +20,7 @@ export class UnknownPromiseErrorHandler {
onHandle(event) {
event.promise.catch((error) => {
if (typeof error === 'object' && error instanceof Error) {
// 很遗憾,因浏览器问题,你只能看到这一段
throw error;
}
});