WithCanBlock will set the runtime's can block; default is true
(canBlock bool)
| 471 | |
| 472 | // WithCanBlock will set the runtime's can block; default is true |
| 473 | func WithCanBlock(canBlock bool) Option { |
| 474 | return func(o *Options) { |
| 475 | o.canBlock = canBlock |
| 476 | } |
| 477 | } |
| 478 | |
| 479 | // WithModuleImport installs or clears the default quickjs-libc file/module loader. |
| 480 | // When enabled, import/export resolution can load modules via quickjs-ng's default loader. |
no outgoing calls