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
Next Next commit
fixup: clarifying doc on policy.setup(null)
  • Loading branch information
bmeck committed Mar 18, 2022
commit eb0893af5b99593c1efa62040a34a72631eb996f
7 changes: 7 additions & 0 deletions lib/internal/bootstrap/pre_execution.js
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,15 @@ function initializePolicy() {
}
policy.setup(src, manifestURL.href);
} else {
// this disables the policy TDZ checks so code can just check
// if (!policy.manifest)
// it is important to keep the policy in TDZ until the user supplied
// options are determined at startup
policy.setup(null);
Comment thread
bmeck marked this conversation as resolved.
}
// ensure that policy no longer has a TDZ by checking
// that we can access .manifest policy.manifest
policy.manifest;
}

function initializeWASI() {
Expand Down