feat: refactoring project
This commit is contained in:
2
node_modules/webpack/lib/serialization/ErrorObjectSerializer.js
generated
vendored
2
node_modules/webpack/lib/serialization/ErrorObjectSerializer.js
generated
vendored
@@ -14,6 +14,7 @@ class ErrorObjectSerializer {
|
||||
constructor(Type) {
|
||||
this.Type = Type;
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {Error | EvalError | RangeError | ReferenceError | SyntaxError | TypeError} obj error
|
||||
* @param {ObjectSerializerContext} context context
|
||||
@@ -23,6 +24,7 @@ class ErrorObjectSerializer {
|
||||
context.write(obj.stack);
|
||||
context.write(/** @type {Error & { cause: "unknown" }} */ (obj).cause);
|
||||
}
|
||||
|
||||
/**
|
||||
* @param {ObjectDeserializerContext} context context
|
||||
* @returns {Error | EvalError | RangeError | ReferenceError | SyntaxError | TypeError} error
|
||||
|
||||
Reference in New Issue
Block a user