Bug 66482 - Web Inspector: backend js api: an ability to skip optional arguments in the middle of the argument list is required
Summary: Web Inspector: backend js api: an ability to skip optional arguments in the m...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Ilya Tikhonovsky
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-18 10:50 PDT by Ilya Tikhonovsky
Modified: 2011-08-19 01:42 PDT (History)
10 users (show)

See Also:


Attachments
[patch] initial version (3.29 KB, patch)
2011-08-18 11:26 PDT, Ilya Tikhonovsky
pfeldman: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Ilya Tikhonovsky 2011-08-18 10:50:16 PDT
there are some functions in the API with multiple optional arguments.
we have to specify an optional argument as 'undefined' when we want to pass non default value for the next one.
Comment 1 Ilya Tikhonovsky 2011-08-18 11:26:10 PDT
Created attachment 104370 [details]
[patch] initial version

RuntimeAgent.evaluate(value, undefined, undefined, true, evaluatedCallback.bind(this));

can be replaced with 

RuntimeAgent.evaluate.invoke({expression:value, doNotPauseOnExceptions:true}, evaluatedCallback.bind(this));
Comment 2 Ilya Tikhonovsky 2011-08-19 01:42:17 PDT
Committed r93389: <http://trac.webkit.org/changeset/93389>