Add process.features.isolates
authorRyan Dahl <ry@tinyclouds.org>
Tue, 27 Dec 2011 21:06:25 +0000 (13:06 -0800)
committerBen Noordhuis <info@bnoordhuis.nl>
Thu, 29 Dec 2011 00:56:11 +0000 (01:56 +0100)
src/node.cc

index 4cedfbc..94b8c44 100644 (file)
@@ -1986,6 +1986,15 @@ static Handle<Object> GetFeatures() {
   obj->Set(String::NewSymbol("tls"),
       Boolean::New(get_builtin_module("crypto") != NULL));
 
+
+  obj->Set(String::NewSymbol("isolates"),
+#if HAVE_ISOLATES
+    True()
+#else
+    False()
+#endif
+  );
+
   return scope.Close(obj);
 }