Closed Bug 1298830 Opened 8 years ago Closed 5 years ago

mysterious warning: Ignoring get or set of property that has [LenientThis] because the “this” object is incorrect.

Categories

(DevTools :: Console, defect, P2)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 860312

People

(Reporter: claude.pache, Unassigned)

References

Details

Repro steps
-----------
1. Open a new tab.
2. Open the web console.
3. Enter: Object.getPrototypeOf(document.createElement('div'))

Actual result
-------------
Got the warning: Ignoring get or set of property that has [LenientThis] because the “this” object is incorrect.

Expected result
---------------
I don’t know what is expected, since I don’t understand the warning, to begin with. Either no warning, or a link explaining what it means.
I think this is triggered by something inside the console itself since I don't see the warning on data:text/html,<script>Object.getPrototypeOf(document.createElement('div'))</script> but I do on data:text/html,<script>console.log(Object.getPrototypeOf(document.createElement('div')))</script>.

So seems the fix should be getting rid of the warning entirely.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P2
Possible duplicate of Bug 860312
See Also: → 860312
Product: Firefox → DevTools
Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
See Also: 860312
You need to log in before you can comment on or make changes to this bug.