@@ -25,4 +25,4 @@ exports.arrayClear = {
// if run directly run benchmarks
-if (!module.main) require("benchmarksman").runner(exports);
+if (!module.parent) require("benchmarksman").runner(exports);
@@ -58,4 +58,4 @@ exports.arrayExtend = {
@@ -26,4 +26,4 @@ exports.arrayForEach = {
@@ -41,4 +41,4 @@ exports.arrayIndexOf = {
};
@@ -17,4 +17,4 @@ exports.dateGetTime = {
@@ -29,4 +29,4 @@ exports.jsonParse = {
@@ -54,4 +54,4 @@ exports.knownSetHas = {
@@ -12,4 +12,4 @@ exports.maths = {
@@ -54,4 +54,4 @@ exports.objectHasKeys = {
@@ -21,4 +21,4 @@ exports.typeArray = {
@@ -26,4 +26,4 @@ exports.typeObject = {
@@ -40,4 +40,4 @@ exports.benchmarksman = {
// Mocha one-liner to make these tests self-hosted
-if (!module.main) (new(require("mocha"))()).addFile(__filename).ui("exports").run(process.exit);
+if (!module.parent) (new(require("mocha"))()).addFile(__filename).ui("exports").run(process.exit);