Bug 66482

Summary: Web Inspector: backend js api: an ability to skip optional arguments in the middle of the argument list is required
Product: WebKit Reporter: Ilya Tikhonovsky <loislo>
Component: Web Inspector (Deprecated)Assignee: Ilya Tikhonovsky <loislo>
Status: RESOLVED FIXED    
Severity: Normal CC: apavlov, bweinstein, joepeck, keishi, loislo, pfeldman, pmuellr, rik, timothy, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
[patch] initial version pfeldman: review+

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>