Update this._opt to reflect how it should behave
This commit is contained in:
parent
eee76b356c
commit
b6b86e4f2f
1 changed files with 2 additions and 2 deletions
|
|
@ -41,7 +41,7 @@ const validEvents = [
|
||||||
|
|
||||||
class WorkerWare {
|
class WorkerWare {
|
||||||
constructor(opt) {
|
constructor(opt) {
|
||||||
this._opt = opt;
|
this._opt = Object.assign({}, defaultOpt, opt);
|
||||||
this._middlewares = [];
|
this._middlewares = [];
|
||||||
}
|
}
|
||||||
info() {
|
info() {
|
||||||
|
|
@ -144,4 +144,4 @@ class WorkerWare {
|
||||||
error: undefined,
|
error: undefined,
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Loading…
Add table
Reference in a new issue