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

Function DefaultBootstrap

runtime.go:303–308  ·  view source on GitHub ↗

DefaultBootstrap enables the same bootstrap pipeline as Runtime.NewContext: std/os module registration plus global timer injection.

()

Source from the content-addressed store, hash-verified

301// DefaultBootstrap enables the same bootstrap pipeline as Runtime.NewContext:
302// std/os module registration plus global timer injection.
303func DefaultBootstrap() ContextBootstrapOption {
304 return func(o *ContextBootstrapOptions) {
305 o.loadStdOS = true
306 o.injectTimers = true
307 }
308}
309
310// MinimalBootstrap enables std/os module registration but skips timer injection.
311func MinimalBootstrap() ContextBootstrapOption {

Calls

no outgoing calls