Implementing Object.prototype object and global object for ECMA 3
Adding Math class support. git-svn-id: svn://10.0.0.236/trunk@74572 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -89,7 +89,6 @@ static bool promptLine(LineReader &inReader, string &s, const char *prompt)
|
||||
}
|
||||
|
||||
World world;
|
||||
JSScope global;
|
||||
|
||||
/* "filename" of the console */
|
||||
const String ConsoleName = widenCString("<console>");
|
||||
@@ -184,6 +183,7 @@ static JSValue time(Context *cx, const JSValues &argv)
|
||||
|
||||
static void readEvalPrint(FILE *in, World &world)
|
||||
{
|
||||
JSScope global;
|
||||
Context cx(world, &global);
|
||||
#ifdef DEBUGGER_FOO
|
||||
jsd.attachToContext (&cx);
|
||||
|
||||
Reference in New Issue
Block a user