Changeset 2772 in webkit for trunk/JavaScriptCore/kjs/testkjs.cpp
- Timestamp:
- Nov 19, 2002, 6:35:01 PM (23 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/kjs/testkjs.cpp
r1326 r2772 63 63 Interpreter interp(global); 64 64 // add debug() function 65 global.put(interp.globalExec(), "debug", Object(new TestFunctionImp()));65 global.put(interp.globalExec(), Identifier("debug"), Object(new TestFunctionImp())); 66 66 // add "print" for compatibility with the mozilla js shell 67 global.put(interp.globalExec(), "print", Object(new TestFunctionImp()));67 global.put(interp.globalExec(), Identifier("print"), Object(new TestFunctionImp())); 68 68 69 69 const int BufferSize = 200000; … … 93 93 int lineno = -1; 94 94 if (exVal.type() == ObjectType) { 95 Value lineVal = Object::dynamicCast(exVal).get(exec, "line");95 Value lineVal = Object::dynamicCast(exVal).get(exec,Identifier("line")); 96 96 if (lineVal.type() == NumberType) 97 97 lineno = int(lineVal.toNumber(exec));
Note:
See TracChangeset
for help on using the changeset viewer.