Changeset 41924 in webkit for trunk/JavaScriptCore/API


Ignore:
Timestamp:
Mar 23, 2009, 5:18:02 PM (16 years ago)
Author:
[email protected]
Message:

Make testapi run as part of the standard JavaScriptCore tests.

Reviewed by Geoff Garen.

We only run testapi on the mac as currently windows webkit doesn't
place all the necessary files for testapi, and we also test the
JSC/CF APIs as well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/API/tests/testapi.c

    r41905 r41924  
    2727#include "JSBasePrivate.h"
    2828#include <math.h>
     29#define ASSERT_DISABLED 0
    2930#include <wtf/Assertions.h>
    3031#include <wtf/UnusedParam.h>
     
    343344    JSValueRef hasInstance = JSObjectGetProperty(context, constructor, hasInstanceName, exception);
    344345    JSStringRelease(hasInstanceName);
    345    
     346    if (!hasInstance)
     347        return false;
    346348    JSObjectRef function = JSValueToObject(context, hasInstance, exception);
    347349    JSValueRef result = JSObjectCallAsFunction(context, function, constructor, 1, &possibleValue, exception);
Note: See TracChangeset for help on using the changeset viewer.