Support initializing the global state with some custom logic. For example, initializing with a module that implements the console methods for a debugger.
This would not be a functional implementation if handled at the sheut module level. To make it functional, the initialization function can instead map inputs to global context handles and then require the global handle be passed in when calls are made (like the existing debugContext operations).
Support initializing the global state with some custom logic. For example, initializing with a module that implements the
consolemethods for a debugger.This would not be a functional implementation if handled at the sheut module level. To make it functional, the initialization function can instead map inputs to global context handles and then require the global handle be passed in when calls are made (like the existing
debugContextoperations).