MCPcopy Create free account
hub / github.com/buke/quickjs-go / NoBootstrap

Function NoBootstrap

runtime.go:319–324  ·  view source on GitHub ↗

NoBootstrap disables all host bootstrap steps.

()

Source from the content-addressed store, hash-verified

317
318// NoBootstrap disables all host bootstrap steps.
319func NoBootstrap() ContextBootstrapOption {
320 return func(o *ContextBootstrapOptions) {
321 o.loadStdOS = false
322 o.injectTimers = false
323 }
324}
325
326// WithBootstrapStdOS toggles std/os module registration in bootstrap.
327func WithBootstrapStdOS(enabled bool) ContextBootstrapOption {

Calls

no outgoing calls