Add qualification to mainModules.

mainModules is not in scope here (JavaScript evaluator was V8
3.22.24.10).
This commit is contained in:
Marc Burns 2014-02-25 16:43:48 -05:00
parent c9922ef7d8
commit 04ce8e34fe

View File

@ -908,7 +908,7 @@
var i; var i;
machine = machine || runtime.currentMachine; machine = machine || runtime.currentMachine;
for (i = 0; i < machine.mainModules.length; i++) { for (i = 0; i < machine.mainModules.length; i++) {
var ns = machine.modules[mainModules[i]].getExternalExports(); var ns = machine.modules[machine.mainModules[i]].getExternalExports();
if(ns.hasKey(name)) { if(ns.hasKey(name)) {
return ns.get(name); return ns.get(name);
} }