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

Function MinimalBootstrap

runtime.go:311–316  ·  view source on GitHub ↗

MinimalBootstrap enables std/os module registration but skips timer injection.

()

Source from the content-addressed store, hash-verified

309
310// MinimalBootstrap enables std/os module registration but skips timer injection.
311func MinimalBootstrap() ContextBootstrapOption {
312 return func(o *ContextBootstrapOptions) {
313 o.loadStdOS = true
314 o.injectTimers = false
315 }
316}
317
318// NoBootstrap disables all host bootstrap steps.
319func NoBootstrap() ContextBootstrapOption {

Callers 1

Calls

no outgoing calls

Tested by 1