| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 7ecc674 commit e6685f9
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -235,14 +235,12 @@ function createContext(contextObject = {}, options = kEmptyObject) { | |||
| 235 | 235 | validateBoolean(wasm, 'options.codeGeneration.wasm'); | |
| 236 | 236 | } | |
| 237 | 237 | ||
| 238 | - let microtaskQueue = null; | ||
| 239 | - if (microtaskMode !== undefined) { | ||
| 240 | - validateOneOf(microtaskMode, 'options.microtaskMode', | ||
| 241 | - ['afterEvaluate', undefined]); | ||
| 242 | - | ||
| 243 | - if (microtaskMode === 'afterEvaluate') | ||
| 244 | - microtaskQueue = new MicrotaskQueue(); | ||
| 245 | - } | ||
| 238 | + validateOneOf(microtaskMode, | ||
| 239 | + 'options.microtaskMode', | ||
| 240 | + ['afterEvaluate', undefined]); | ||
| 241 | + const microtaskQueue = microtaskMode === 'afterEvaluate' ? | ||
| 242 | + new MicrotaskQueue() : | ||
| 243 | + null; | ||
| 246 | 244 | ||
| 247 | 245 | makeContext(contextObject, name, origin, strings, wasm, microtaskQueue); | |
| 248 | 246 | return contextObject; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments