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


Ignore:
Timestamp:
Jun 25, 2006, 8:12:18 PM (19 years ago)
Author:
ggaren
Message:

Reviewed by Adele.


  • Added JSConstructorMake to match JSFunctionMake, along with test code.


[ I checked in the ChangeLog before without the actual files. ]

  • API/JSObjectRef.cpp: (JSConstructorMake):
  • API/JSObjectRef.h:
  • API/testapi.c: (myConstructor_callAsConstructor): (main):
  • API/testapi.js:
  • ChangeLog:
  • JavaScriptCore.xcodeproj/project.pbxproj: Moved testapi.c to the testapi target -- this was an oversight in my earlier check-in.
File:
1 edited

Legend:

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

    r14951 r15043  
    7777shouldBe("(MyObject + '').indexOf('MyObject') != -1", true); // toString
    7878shouldBe("MyObject - 0", NaN); // toPrimitive
     79
     80shouldBe("typeof MyConstructor", "object");
     81constructedObject = new MyConstructor(1);
     82shouldBe("typeof constructedObject", "object");
     83shouldBe("constructedObject.value", 1);
Note: See TracChangeset for help on using the changeset viewer.