Closed Bug 1190605 Opened 9 years ago Closed 8 years ago

Proxy with isExtensible trap can prevent the Object Inspector from inspecting object

Categories

(DevTools :: Object Inspector, defect)

42 Branch
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1274657

People

(Reporter: Oriol, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 5.1; rv:42.0) Gecko/20100101 Firefox/42.0
Build ID: 20150803030207

Steps to reproduce:

Open the console and enter
> new Proxy(Object.create(null), {get: ()=>arguments, isExtensible: ()=>{} }).a

The console logs [object Arguments]. Click it.


Actual results:

The Object inspector can't inspect the Arguments object because of this internal error:
> error occurred while processing 'prototypeAndProperties:
> TypeError: proxy must report same extensiblitity as target


Expected results:

Object Inspector should be able to inspect the object.
Component: Untriaged → Developer Tools: Object Inspector
A better testcase would be inspecting this object:

    [new Proxy({}, {isExtensible: ()=>{} })]

The issue is now fixed by bug 1274657.
Status: UNCONFIRMED → RESOLVED
Closed: 8 years ago
Resolution: --- → DUPLICATE
Product: Firefox → DevTools
You need to log in before you can comment on or make changes to this bug.