Issue #618 - Align error handling for module scripts with the spec - Debug follow up

MODULE_STATUS_ERRORED is no more. Replacing with newer API.

Ref: BZ 1420420
This commit is contained in:
Gaming4JC 2020-08-03 14:31:43 -04:00 committed by Roy Tam
commit f3d348ebd7

View file

@ -67,7 +67,8 @@ function ModuleGetExportedNames(exportStarSet = [])
function ModuleSetStatus(module, newStatus)
{
assert(newStatus >= MODULE_STATUS_ERRORED && newStatus <= MODULE_STATUS_EVALUATED,
assert(newStatus >= MODULE_STATUS_UNINSTANTIATED &&
newStatus <= MODULE_STATUS_EVALUATED_ERROR,
"Bad new module status in ModuleSetStatus");
// Note that under OOM conditions we can fail the module instantiation