Closed Bug 381058 Opened 18 years ago Closed 15 years ago

(foo instanceof Array) doesn't work across JS contexts

Categories

(Core :: JavaScript Engine, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 339884

People

(Reporter: WeirdAl, Unassigned)

Details

In writing new JS module code for ArrayConverter (bug 380839), I noticed my module's ArrayConverter.nsIArray() method could not evaluate "(aArray instanceof Array)" to true under any circumstances. For the native types, such as Array, Object, etc., it would be nice to have that evaluate to true when appropriate, so that I could throw an exception if it wasn't true. I wonder if this bug is fundamentally a dupe of bug 339884. I can provide a xpcshell testcase if so desired for components (I suspect the same bug may apply across XPCOM component boundaries).
(In reply to comment #0) > I wonder if this bug is fundamentally a dupe of bug 339884. Sure looks like it to me. See also bug 350558.
Status: NEW → RESOLVED
Closed: 15 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.