Changeset 2772 in webkit for trunk/JavaScriptCore/kjs/testkjs.cpp


Ignore:
Timestamp:
Nov 19, 2002, 6:35:01 PM (23 years ago)
Author:
darin
Message:
  • a few more globals for often-used property names
  • conversion to Identifier from UString must now be explicit
  • kjs/error_object.cpp:
  • kjs/function.cpp:
  • kjs/function_object.cpp:
  • kjs/identifier.cpp:
  • kjs/identifier.h:
  • kjs/lexer.cpp:
  • kjs/nodes.cpp:
  • kjs/number_object.cpp:
  • kjs/object.cpp:
  • kjs/object.h:
  • kjs/string_object.cpp:
  • kjs/testkjs.cpp:
  • kjs/ustring.cpp:
  • kjs/ustring.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/testkjs.cpp

    r1326 r2772  
    6363    Interpreter interp(global);
    6464    // add debug() function
    65     global.put(interp.globalExec(),"debug", Object(new TestFunctionImp()));
     65    global.put(interp.globalExec(), Identifier("debug"), Object(new TestFunctionImp()));
    6666    // 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()));
    6868
    6969    const int BufferSize = 200000;
     
    9393        int lineno = -1;
    9494        if (exVal.type() == ObjectType) {
    95           Value lineVal = Object::dynamicCast(exVal).get(exec,"line");
     95          Value lineVal = Object::dynamicCast(exVal).get(exec,Identifier("line"));
    9696          if (lineVal.type() == NumberType)
    9797            lineno = int(lineVal.toNumber(exec));
Note: See TracChangeset for help on using the changeset viewer.