[Webkit-unassigned] [Bug 145563] New: JSExport protocol with an NSInteger property converts negative values to 18446744073709552000

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Jun 2 13:08:26 PDT 2015


https://bugs.webkit.org/show_bug.cgi?id=145563

            Bug ID: 145563
           Summary: JSExport protocol with an NSInteger property converts
                    negative values to 18446744073709552000
    Classification: Unclassified
           Product: WebKit
           Version: 528+ (Nightly build)
          Hardware: Unspecified
                OS: Unspecified
            Status: NEW
          Severity: Normal
          Priority: P2
         Component: JavaScriptCore
          Assignee: webkit-unassigned at lists.webkit.org
          Reporter: keith_miller at apple.com

Steps to Reproduce:
My code roughly looks like:

@protocol XXThingExports <JSExport>
@property (nonatomic) NSInteger level;
@end

@interface XXThing : NSObject <XXThingExports>
@property (nonatomic) NSInteger level;
@end

1. From Objective-C, set `level` to a negative value like -46.
2. Accessing the `level` property of an XXThing object from JavaScript gives 18446744073709552000.

Expected Results:
thing.level should be -46

Actual Results:
thing.level is 18446744073709552000

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20150602/d9419596/attachment.html>


More information about the webkit-unassigned mailing list