Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixup! vm: add run-after-evaluate microtask mode
  • Loading branch information
addaleax committed Jun 26, 2020
commit a3ba46b0743a7f7c021106786f861d78e540e1a9
6 changes: 6 additions & 0 deletions lib/vm.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,12 @@ function createContext(contextObject = {}, options = {}) {

if (microtaskMode === 'afterEvaluate') {
microtaskQueue = new MicrotaskQueue();
} else {
throw new ERR_INVALID_ARG_VALUE(
'options.microtaskQueue',
microtaskQueue,
'must be \'afterEvaluate\' or undefined'
);
}
}

Expand Down