BaseRuntime constructor
BaseRuntime(
- BaseResults results
Configures _ENV and _ENV._G in the global scope.
Implementation
BaseRuntime(this.results) {
globalG = LuaObject.variable('_G', globalEnv);
globalEnv.writeFieldFrom(globalG);
/// Registering tghese so they can be reached from any [Scope.parent].
global.defVar(globalEnv.id, globalEnv);
global.defVar(globalG.id, globalG);
}