Bug 81082 - [JSC] Web Inspector: CRASH running $0, $1, etc before they are set
Summary: [JSC] Web Inspector: CRASH running $0, $1, etc before they are set
Alias: None
Product: WebKit
Classification: Unclassified
Component: Web Inspector (Deprecated) (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Nobody
Depends on:
Reported: 2012-03-13 23:35 PDT by Joseph Pecoraro
Modified: 2012-03-14 14:57 PDT (History)
12 users (show)

See Also:

[PATCH] Proposed Fix (3.15 KB, patch)
2012-03-13 23:48 PDT, Joseph Pecoraro
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Joseph Pecoraro 2012-03-13 23:35:43 PDT
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.