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:
rogerl%netscape.com
2000-07-21 01:16:49 +00:00
parent 5aef7267a3
commit fdde4baec8
16 changed files with 868 additions and 22 deletions

View File

@@ -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);