Bug 146280 - Improve JSDOMPromise callPromiseFunction naming
Summary: Improve JSDOMPromise callPromiseFunction naming
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: 528+ (Nightly build)
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: youenn fablet
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2015-06-24 08:33 PDT by youenn fablet
Modified: 2015-06-24 12:09 PDT (History)
2 users (show)

See Also:


Attachments
Patch (2.13 KB, patch)
2015-06-24 08:37 PDT, youenn fablet
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description youenn fablet 2015-06-24 08:33:57 PDT
Following on bug 146060, we could do some improvements.

>> Source/WebCore/bindings/js/JSDOMPromise.h:62
>> +template<class JSClassName>
>
>The type here is the JavaScript class, not the JavaScript class name. I suggest the name WrapperClass here instead of JSClassName. Also, we almost always use typename rather >than class in templates, although I’m not entirely sure why.
>
>> Source/WebCore/bindings/js/JSDOMPromise.h:63
>> +inline JSC::JSValue callPromiseFunction(JSC::ExecState& state, JSClassName& jsObject, JSC::EncodedJSValue promiseFunction(JSC::ExecState*, JSClassName*, >JSC::JSPromiseDeferred*))
>
>A typical name used in bindings for what we are calling jsObject here is “wrapper”
Comment 1 youenn fablet 2015-06-24 08:37:01 PDT
Created attachment 255483 [details]
Patch
Comment 2 youenn fablet 2015-06-24 08:38:38 PDT
Given the modifications are already suggested as part of a review, I do not think a review is needed. But just in case, I will wait for tomorrow to cq it.
Comment 3 WebKit Commit Bot 2015-06-24 12:08:59 PDT
Comment on attachment 255483 [details]
Patch

Clearing flags on attachment: 255483

Committed r185919: <http://trac.webkit.org/changeset/185919>
Comment 4 WebKit Commit Bot 2015-06-24 12:09:03 PDT
All reviewed patches have been landed.  Closing bug.