Changeset 43603 in webkit for trunk/JavaScriptCore/API
- Timestamp:
- May 12, 2009, 7:39:34 PM (16 years ago)
- Location:
- trunk/JavaScriptCore/API/tests
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/tests/testapi.c
r42315 r43603 700 700 } 701 701 702 static JSValueRef functionGC(JSContextRef context, JSObjectRef function, JSObjectRef thisObject, size_t argumentCount, const JSValueRef arguments[], JSValueRef* exception) 703 { 704 UNUSED_PARAM(function); 705 UNUSED_PARAM(thisObject); 706 UNUSED_PARAM(argumentCount); 707 UNUSED_PARAM(arguments); 708 UNUSED_PARAM(exception); 709 JSGarbageCollect(context); 710 return JSValueMakeUndefined(context); 711 } 712 702 713 static JSStaticValue globalObject_staticValues[] = { 703 714 { "globalStaticValue", globalObject_get, globalObject_set, kJSPropertyAttributeNone }, … … 707 718 static JSStaticFunction globalObject_staticFunctions[] = { 708 719 { "globalStaticFunction", globalObject_call, kJSPropertyAttributeNone }, 720 { "gc", functionGC, kJSPropertyAttributeNone }, 709 721 { 0, 0, 0 } 710 722 }; -
trunk/JavaScriptCore/API/tests/testapi.js
r41931 r43603 23 23 * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 24 24 */ 25 26 function bludgeonArguments() { if (0) arguments; return function g() {} } 27 h = bludgeonArguments(); 28 gc(); 29 25 30 var failed = false; 26 31 function pass(msg)
Note:
See TracChangeset
for help on using the changeset viewer.