web console can't see monkey-patched properties of built-ins

RESOLVED WORKSFORME

Status

RESOLVED WORKSFORME
8 years ago
2 months ago

People

(Reporter: dherman, Unassigned)

Tracking

Trunk

Firefox Tracking Flags

(Not tracked)

Details

(Whiteboard: [console-1])

(Reporter)

Description

8 years ago
Write a script that modifies a built-in, e.g.:

    Object.thingy = 42;

Then run the script and try typing

    Object.thingy

in the console. Auto-complete picks it up as you type, but the result is undefined.

Dave

Updated

8 years ago
Whiteboard: [console-1]

Updated

8 years ago
OS: Mac OS X → All
Hardware: x86 → All
Version: 3.6 Branch → Trunk
this appears to be fixed, at least if I type Object.thingy = 42; on the console's input line. When you say "write a script" do you mean add a script to content that does this?

Please reopen if this is still a problem.
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Component: Developer Tools → Developer Tools: Console
Resolution: --- → WORKSFORME

Updated

2 months ago
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.