Changeset 139508 in webkit


Ignore:
Timestamp:
Jan 11, 2013 3:09:37 PM (11 years ago)
Author:
mhahnenberg@apple.com
Message:

testapi is failing with a block-related error in the Objc API
https://bugs.webkit.org/show_bug.cgi?id=106055

Reviewed by Filip Pizlo.

Same bug as in testapi.mm. We need to actually call the static block, rather than casting the block to a bool.

  • API/ObjCCallbackFunction.mm:

(blockSignatureContainsClass):

Location:
trunk/Source/JavaScriptCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/JavaScriptCore/API/ObjCCallbackFunction.mm

    r138689 r139508  
    550550        id block = ^(NSString *string){ return string; };
    551551        return _Block_has_signature(block) && strstr(_Block_signature(block), "NSString");
    552     };
     552    }();
    553553    return containsClass;
    554554}
  • trunk/Source/JavaScriptCore/ChangeLog

    r139506 r139508  
     12013-01-11  Mark Hahnenberg  <mhahnenberg@apple.com>
     2
     3        testapi is failing with a block-related error in the Objc API
     4        https://bugs.webkit.org/show_bug.cgi?id=106055
     5
     6        Reviewed by Filip Pizlo.
     7
     8        Same bug as in testapi.mm. We need to actually call the static block, rather than casting the block to a bool.
     9
     10        * API/ObjCCallbackFunction.mm:
     11        (blockSignatureContainsClass):
     12
    1132013-01-11  Filip Pizlo  <fpizlo@apple.com>
    214
Note: See TracChangeset for help on using the changeset viewer.