|
@@ -1,8 +1,17 @@
|
|
|
-define(["amber/boot", "amber_core/Kernel-Objects"], function($boot){"use strict";
|
|
|
+define(["amber/boot"
|
|
|
+//>>excludeStart("imports", pragmas.excludeImports);
|
|
|
+, "amber_core/Platform-Services"
|
|
|
+//>>excludeEnd("imports");
|
|
|
+, "amber_core/Kernel-Objects"], function($boot
|
|
|
+//>>excludeStart("imports", pragmas.excludeImports);
|
|
|
+
|
|
|
+//>>excludeEnd("imports");
|
|
|
+){"use strict";
|
|
|
if(!("nilAsValue" in $boot))$boot.nilAsValue=$boot.nilAsReceiver;
|
|
|
var $core=$boot.api,nil=$boot.nilAsValue,$nil=$boot.nilAsReceiver,$recv=$boot.asReceiver,$globals=$boot.globals;
|
|
|
var $pkg = $core.addPackage("Platform-Node");
|
|
|
$pkg.innerEval = function (expr) { return eval(expr); };
|
|
|
+$pkg.imports = ["amber_core/Platform-Services"];
|
|
|
$pkg.transport = {"type":"amd","amdNamespace":"amber_core"};
|
|
|
|
|
|
$core.addClass("NodePlatform", $globals.Object, [], "Platform-Node");
|
|
@@ -94,7 +103,7 @@ var self=this,$self=this;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
return $core.withContext(function($ctx1) {
|
|
|
//>>excludeEnd("ctx");
|
|
|
-return typeof global !== "undefined";
|
|
|
+return typeof process !== "undefined" && process && process.versions && process.versions.node != null;
|
|
|
return self;
|
|
|
//>>excludeStart("ctx", pragmas.excludeDebugContexts);
|
|
|
}, function($ctx1) {$ctx1.fill(self,"isFeasible",{},$globals.NodePlatform.a$cls)});
|
|
@@ -102,7 +111,7 @@ return self;
|
|
|
},
|
|
|
//>>excludeStart("ide", pragmas.excludeIdeData);
|
|
|
args: [],
|
|
|
-source: "isFeasible\x0a<inlineJS: 'return typeof global !== \x22undefined\x22'>",
|
|
|
+source: "isFeasible\x0a<inlineJS: 'return typeof process !== \x22undefined\x22 && process && process.versions && process.versions.node != null'>",
|
|
|
referencedClasses: [],
|
|
|
//>>excludeEnd("ide");
|
|
|
messageSends: []
|