Bug 81082

Summary: [JSC] Web Inspector: CRASH running $0, $1, etc before they are set
Product: WebKit Reporter: Joseph Pecoraro <joepeck>
Component: Web Inspector (Deprecated)Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: apavlov, bweinstein, joepeck, keishi, loislo, oliver, pfeldman, pmuellr, rik, timothy, webkit.review.bot, yurys
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
Attachments:
Description Flags
[PATCH] Proposed Fix none

Description Joseph Pecoraro 2012-03-13 23:35:43 PDT
* STEPS TO REPRODUCE
1. Open Inspector to Console
2. js> $0
  => CRASH

Appears to be JSC only.
Comment 1 Joseph Pecoraro 2012-03-13 23:48:35 PDT
Created attachment 131794 [details]
[PATCH] Proposed Fix

Another approach would be to implement and use ScriptValue::undefined instead of ScriptValue() from InjectedScriptHost. I'll try to get a patch of that up as well.
Comment 2 Joseph Pecoraro 2012-03-13 23:56:23 PDT
Looks like JSC would probably need a ScriptState / ExecState for ScriptValue::undefined() to work, so I'm going to avoid that approach.
Comment 3 WebKit Review Bot 2012-03-14 14:57:01 PDT
Comment on attachment 131794 [details]
[PATCH] Proposed Fix

Clearing flags on attachment: 131794

Committed r110760: <http://trac.webkit.org/changeset/110760>
Comment 4 WebKit Review Bot 2012-03-14 14:57:06 PDT
All reviewed patches have been landed.  Closing bug.