diff --git a/mozilla/js/js2/js2.cpp b/mozilla/js/js2/js2.cpp index 58359bc624d..542537fb2c4 100644 --- a/mozilla/js/js2/js2.cpp +++ b/mozilla/js/js2/js2.cpp @@ -171,6 +171,7 @@ static JSValue load(Context *cx, const JSValues &argv) return result; } +#if 0 // need a XP version of this, rip off from Monkey? #include static JSValue time(Context *cx, const JSValues &argv) { @@ -179,6 +180,7 @@ static JSValue time(Context *cx, const JSValues &argv) return JSValue((double)timebuffer.time * 1000 + timebuffer.millitm); } +#endif static void readEvalPrint(FILE *in, World &world) { @@ -189,7 +191,7 @@ static void readEvalPrint(FILE *in, World &world) global.defineNativeFunction(world.identifiers[widenCString("print")], print); global.defineNativeFunction(world.identifiers[widenCString("dump")], dump); global.defineNativeFunction(world.identifiers[widenCString("load")], load); - global.defineNativeFunction(world.identifiers[widenCString("time")], time); +// global.defineNativeFunction(world.identifiers[widenCString("time")], time); String buffer; string line; diff --git a/mozilla/js2/tests/cpp/js2_shell.cpp b/mozilla/js2/tests/cpp/js2_shell.cpp index 58359bc624d..542537fb2c4 100644 --- a/mozilla/js2/tests/cpp/js2_shell.cpp +++ b/mozilla/js2/tests/cpp/js2_shell.cpp @@ -171,6 +171,7 @@ static JSValue load(Context *cx, const JSValues &argv) return result; } +#if 0 // need a XP version of this, rip off from Monkey? #include static JSValue time(Context *cx, const JSValues &argv) { @@ -179,6 +180,7 @@ static JSValue time(Context *cx, const JSValues &argv) return JSValue((double)timebuffer.time * 1000 + timebuffer.millitm); } +#endif static void readEvalPrint(FILE *in, World &world) { @@ -189,7 +191,7 @@ static void readEvalPrint(FILE *in, World &world) global.defineNativeFunction(world.identifiers[widenCString("print")], print); global.defineNativeFunction(world.identifiers[widenCString("dump")], dump); global.defineNativeFunction(world.identifiers[widenCString("load")], load); - global.defineNativeFunction(world.identifiers[widenCString("time")], time); +// global.defineNativeFunction(world.identifiers[widenCString("time")], time); String buffer; string line;