[Webkit-unassigned] [Bug 40300] [JSC] Web Inspector: implement script source editing

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Jun 20 02:25:47 PDT 2012


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





--- Comment #11 from Peter Wang <peter.wang at torchmobile.com.cn>  2012-06-20 02:25:46 PST ---
(In reply to comment #10)
> (From update of attachment 148524 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=148524&action=review
> 
> > Source/WebCore/bindings/js/PageScriptDebugServer.cpp:91
> > +    const ScriptValue& value = frame->script()->executeScript(newContent);
> 
> This will just re-evaluate the script as if you were running it in the inspector console while setScriptSource command should allow you to modify a function that may have already been run and leave other stuff untouched if its source doesn't change. E.g. changing 
> 
> "var count = 1;
> function foo()
> {
>     count++;
> }"
> 
> to
> 
> "var count = 1;
> function foo()
> {
>     count--;
> }"
> 
> shouldn't reset value of the count variable to 1.
I see... Thx.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list