Changeset 15404 in webkit for trunk/JavaScriptCore/API/testapi.js


Ignore:
Timestamp:
Jul 13, 2006, 1:56:52 AM (19 years ago)
Author:
ggaren
Message:

Pleasing to Maciej.


  • Renamed JSEvaluate -> JSEvaluateScript, JSCheckSyntax -> JSCheckScriptSyntax
  • Added exception out parameters to JSValueTo* and JSValueIsEqual because they can throw
  • Removed JSObjectGetDescription because it's useless and vague, and JSValueToString/JSValueIsObjectOfClass do a better job, anyway
  • Clarified comments about "IsFunction/Constructor" to indicate that they are true of all functions/constructors, not just those created by JSObjectMake*
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/API/testapi.js

    r15384 r15404  
    7373shouldBe("MyObject()", undefined);
    7474shouldBe("typeof new MyObject()", "object");
    75 shouldBe("MyObject ? 1 : 0", 0); // toBoolean
     75shouldBe("MyObject ? 1 : 0", 2); // toBoolean -- should throw 2
    7676shouldBe("+MyObject", 1); // toNumber
    7777shouldBe("(MyObject.toString())", "[object CallbackObject]"); // toString
Note: See TracChangeset for help on using the changeset viewer.