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

Function WithBootstrapStdOS

runtime.go:327–331  ·  view source on GitHub ↗

WithBootstrapStdOS toggles std/os module registration in bootstrap.

(enabled bool)

Source from the content-addressed store, hash-verified

325
326// WithBootstrapStdOS toggles std/os module registration in bootstrap.
327func WithBootstrapStdOS(enabled bool) ContextBootstrapOption {
328 return func(o *ContextBootstrapOptions) {
329 o.loadStdOS = enabled
330 }
331}
332
333// WithBootstrapTimers toggles timer injection in bootstrap.
334//

Callers 1

Calls

no outgoing calls

Tested by 1