Summary: | [V8] setDOMException() should return v8::Handle<v8::Value>() | ||||||
---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Kentaro Hara <haraken> | ||||
Component: | WebCore JavaScript | Assignee: | Kentaro Hara <haraken> | ||||
Status: | RESOLVED FIXED | ||||||
Severity: | Normal | CC: | abarth, japhet, webkit.review.bot | ||||
Priority: | P2 | ||||||
Version: | 528+ (Nightly build) | ||||||
Hardware: | Unspecified | ||||||
OS: | Unspecified | ||||||
Bug Depends on: | |||||||
Bug Blocks: | 85330 | ||||||
Attachments: |
|
Description
Kentaro Hara
2012-05-21 23:04:45 PDT
Created attachment 143195 [details]
Patch
Comment on attachment 143195 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=143195&action=review > Source/WebCore/bindings/v8/V8Proxy.cpp:592 > - return; > + return v8::Handle<v8::Value>(); Should we return v8::Local<v8::Value> ? I guess it doesn't matter for empty handles. Comment on attachment 143195 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=143195&action=review >> Source/WebCore/bindings/v8/V8Proxy.cpp:592 >> + return v8::Handle<v8::Value>(); > > Should we return v8::Local<v8::Value> ? I guess it doesn't matter for empty handles. It doesn't matter. V8::Local<v8::Value> can be casted to v8::Handle<v8::Value>. I used v8::Handle<v8::Value> just because throwError()s return v8::Handle<v8::Value>. Do you think V8::Local<v8::Value> is better? I don't think it makes any difference for empty handles. Comment on attachment 143195 [details] Patch Clearing flags on attachment: 143195 Committed r117926: <http://trac.webkit.org/changeset/117926> All reviewed patches have been landed. Closing bug. |