Changeset 34607 in webkit for trunk/JavaScriptCore/kjs/Shell.cpp
- Timestamp:
- Jun 16, 2008, 4:28:38 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/Shell.cpp
r34587 r34607 164 164 GlobalObject::GlobalObject(Vector<UString>& arguments) 165 165 { 166 putDirectFunction(new PrototypeFunction(globalExec(), functionPrototype(), 1, "debug", functionDebug));167 putDirectFunction(new PrototypeFunction(globalExec(), functionPrototype(), 1, "print", functionPrint));168 putDirectFunction(new PrototypeFunction(globalExec(), functionPrototype(), 0, "quit", functionQuit));169 putDirectFunction(new PrototypeFunction(globalExec(), functionPrototype(), 0, "gc", functionGC));170 putDirectFunction(new PrototypeFunction(globalExec(), functionPrototype(), 1, "version", functionVersion));171 putDirectFunction(new PrototypeFunction(globalExec(), functionPrototype(), 1, "run", functionRun));172 putDirectFunction(new PrototypeFunction(globalExec(), functionPrototype(), 1, "load", functionLoad));173 putDirectFunction(new PrototypeFunction(globalExec(), functionPrototype(), 0, "readline", functionReadline));166 putDirectFunction(new PrototypeFunction(globalExec(), functionPrototype(), 1, Identifier(globalExec(), "debug"), functionDebug)); 167 putDirectFunction(new PrototypeFunction(globalExec(), functionPrototype(), 1, Identifier(globalExec(), "print"), functionPrint)); 168 putDirectFunction(new PrototypeFunction(globalExec(), functionPrototype(), 0, Identifier(globalExec(), "quit"), functionQuit)); 169 putDirectFunction(new PrototypeFunction(globalExec(), functionPrototype(), 0, Identifier(globalExec(), "gc"), functionGC)); 170 putDirectFunction(new PrototypeFunction(globalExec(), functionPrototype(), 1, Identifier(globalExec(), "version"), functionVersion)); 171 putDirectFunction(new PrototypeFunction(globalExec(), functionPrototype(), 1, Identifier(globalExec(), "run"), functionRun)); 172 putDirectFunction(new PrototypeFunction(globalExec(), functionPrototype(), 1, Identifier(globalExec(), "load"), functionLoad)); 173 putDirectFunction(new PrototypeFunction(globalExec(), functionPrototype(), 0, Identifier(globalExec(), "readline"), functionReadline)); 174 174 175 175 JSObject* array = arrayConstructor()->construct(globalExec(), globalExec()->emptyList()); 176 176 for (size_t i = 0; i < arguments.size(); ++i) 177 177 array->put(globalExec(), i, jsString(arguments[i])); 178 putDirect( "arguments", array);178 putDirect(Identifier(globalExec(), "arguments"), array); 179 179 180 180 Interpreter::setShouldPrintExceptions(true);
Note:
See TracChangeset
for help on using the changeset viewer.