Changeset 28328 in webkit for trunk/JavaScriptCore/kjs/testkjs.cpp
- Timestamp:
- Dec 2, 2007, 11:43:29 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/testkjs.cpp
r28309 r28328 229 229 230 230 // add debug() function 231 global->put( interp->globalExec(), "debug", new TestFunctionImp(TestFunctionImp::Debug, 1));231 global->put(global->globalExec(), "debug", new TestFunctionImp(TestFunctionImp::Debug, 1)); 232 232 // add "print" for compatibility with the mozilla js shell 233 global->put( interp->globalExec(), "print", new TestFunctionImp(TestFunctionImp::Print, 1));233 global->put(global->globalExec(), "print", new TestFunctionImp(TestFunctionImp::Print, 1)); 234 234 // add "quit" for compatibility with the mozilla js shell 235 global->put( interp->globalExec(), "quit", new TestFunctionImp(TestFunctionImp::Quit, 0));235 global->put(global->globalExec(), "quit", new TestFunctionImp(TestFunctionImp::Quit, 0)); 236 236 // add "gc" for compatibility with the mozilla js shell 237 global->put( interp->globalExec(), "gc", new TestFunctionImp(TestFunctionImp::GC, 0));237 global->put(global->globalExec(), "gc", new TestFunctionImp(TestFunctionImp::GC, 0)); 238 238 // add "version" for compatibility with the mozilla js shell 239 global->put( interp->globalExec(), "version", new TestFunctionImp(TestFunctionImp::Version, 1));240 global->put( interp->globalExec(), "run", new TestFunctionImp(TestFunctionImp::Run, 1));241 global->put( interp->globalExec(), "load", new TestFunctionImp(TestFunctionImp::Load, 1));239 global->put(global->globalExec(), "version", new TestFunctionImp(TestFunctionImp::Version, 1)); 240 global->put(global->globalExec(), "run", new TestFunctionImp(TestFunctionImp::Run, 1)); 241 global->put(global->globalExec(), "load", new TestFunctionImp(TestFunctionImp::Load, 1)); 242 242 243 243 Interpreter::setShouldPrintExceptions(true);
Note:
See TracChangeset
for help on using the changeset viewer.