Merge pull request #15966 from Snuffleupagus/GlobalWorkerOptions-defaults
Simplify setting the `GlobalWorkerOptions` default values (PR 9480 follow-up)
This commit is contained in:
commit
16aef95937
@ -27,14 +27,7 @@
|
||||
/** @type {GlobalWorkerOptionsType} */
|
||||
const GlobalWorkerOptions = Object.create(null);
|
||||
|
||||
GlobalWorkerOptions.workerPort =
|
||||
GlobalWorkerOptions.workerPort === undefined
|
||||
? null
|
||||
: GlobalWorkerOptions.workerPort;
|
||||
|
||||
GlobalWorkerOptions.workerSrc =
|
||||
GlobalWorkerOptions.workerSrc === undefined
|
||||
? ""
|
||||
: GlobalWorkerOptions.workerSrc;
|
||||
GlobalWorkerOptions.workerPort = null;
|
||||
GlobalWorkerOptions.workerSrc = "";
|
||||
|
||||
export { GlobalWorkerOptions };
|
||||
|
Loading…
Reference in New Issue
Block a user