允许错误反复抛出

This commit is contained in:
IceCola 2024-06-07 23:04:26 +08:00
parent bd44367abf
commit 0362369500
1 changed files with 0 additions and 2 deletions

View File

@ -218,8 +218,6 @@ class ErrorManager {
throw new TypeError("参数必须是一个对象");
if (!(reporter instanceof ErrorReporter))
reporter = new ErrorReporter(obj);
if (ErrorManager.#errorReporters.has(obj))
throw new Error("对象已存在错误报告器");
ErrorManager.#errorReporters.set(obj, reporter);
}