Changeset 61946 in webkit for trunk/JavaScriptCore
- Timestamp:
- Jun 25, 2010, 11:25:46 PM (15 years ago)
- Location:
- trunk/JavaScriptCore
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/tests/testapi.c
r60390 r61946 928 928 929 929 JSStringRef lengthStr = JSStringCreateWithUTF8CString("length"); 930 aHeapRef = JSObjectMakeArray(context, 0, 0, 0); 930 JSObjectRef aStackRef = JSObjectMakeArray(context, 0, 0, 0); 931 aHeapRef = aStackRef; 931 932 JSObjectSetProperty(context, aHeapRef, lengthStr, JSValueMakeNumber(context, 10), 0, 0); 932 933 JSStringRef privatePropertyName = JSStringCreateWithUTF8CString("privateProperty"); … … 937 938 printf("PASS: Set private property.\n"); 938 939 } 940 aStackRef = 0; 939 941 if (JSObjectSetPrivateProperty(context, aHeapRef, privatePropertyName, aHeapRef)) { 940 942 printf("FAIL: JSObjectSetPrivateProperty should fail on non-API objects.\n"); … … 965 967 JSObjectMake(context, 0, 0); 966 968 969 aHeapRef = JSValueToObject(context, JSObjectGetPrivateProperty(context, myObject, privatePropertyName), 0); 967 970 if (JSValueToNumber(context, JSObjectGetProperty(context, aHeapRef, lengthStr, 0), 0) != 10) { 968 971 printf("FAIL: Private property has been collected.\n"); -
trunk/JavaScriptCore/ChangeLog
r61927 r61946 1 2010-06-25 Nathan Lawrence <[email protected]> 2 3 Reviewed by Geoffrey Garen. 4 5 We assume in testapi.c that the value aHeapRef refers to will not be 6 moved. When we have movable objects, this will not be the case. 7 8 * API/tests/testapi.c: 9 (main): 10 1 11 2010-06-25 Sheriff Bot <[email protected]> 2 12
Note:
See TracChangeset
for help on using the changeset viewer.