Closed Bug 622419 Opened 14 years ago Closed 14 years ago

NS_ERROR_XPC_BAD_CONVERT_JS on getOwnPropertyDescriptor() call

Categories

(Firefox :: General, defect)

x86
Windows 7
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 622420

People

(Reporter: bugzilla, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b8) Gecko/20100101 Firefox/4.0b8
Build Identifier: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b8) Gecko/20100101 Firefox/4.0b8

Call to getOwnPropertyDescriptor() fails with NS_ERROR_XPC_BAD_CONVERT_JS

Reproducible: Always

Steps to Reproduce:
Execute From Javascript:

Object.getOwnPropertyDescriptor(Element.prototype, "textContent");

Actual Results:  
uncaught exception: [Exception... "Could not convert JavaScript argument" nsresult: "0x80570009 (NS_ERROR_XPC_BAD_CONVERT_JS)" location: <TOP_LEVEL> :: line 4" data: no]

Expected Results:  
Should return the property descriptor (does if you de-reference Element.prototype in Firebug and open the object)

This occurs in FireFox 4.0b8, getOwnPropertyDescriptor() which I believe is new to FF 4.0
Status: UNCONFIRMED → RESOLVED
Closed: 14 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.