Ver Fonte

fix for the case when module.config function is missing

Herbert Vojčík há 10 anos atrás
pai
commit
07383d40e5
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      support/smalltalk.js

+ 1 - 1
support/smalltalk.js

@@ -1,7 +1,7 @@
 define("amber_vm/smalltalk", ["require", "module", "./boot"], function (require, module, boot) {
     var smalltalk = boot.smalltalk;
     smalltalk._amd_require = require;
-    var config = module.config();
+    var config = module.config && module.config();
     if (config) {
         smalltalk._amd_defaultNamespace = config.defaultNamespace;
     }