Lines Matching refs:config
126 self.sqlite3Worker1Promiser = function callee(config = callee.defaultConfig){ argument
129 const f = config;
130 config = Object.assign(Object.create(null), callee.defaultConfig);
131 config.onready = f;
133 config = Object.assign(Object.create(null), callee.defaultConfig, config);
137 const err = config.onerror
140 const debug = config.debug || noop;
141 const idTypeMap = config.generateMessageId ? undefined : Object.create(null);
142 const genMsgId = config.generateMessageId || function(msg){
146 if(!config.worker) config.worker = callee.defaultConfig.worker;
147 if('function'===typeof config.worker) config.worker = config.worker();
149 config.worker.onmessage = function(ev){
156 if(config.onready) config.onready();
164 if(config.onunhandled) config.onunhandled(arguments[0]);
233 config.worker.postMessage(msg);