Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Lazy resolving of prototype property

3 views
Skip to first unread message

alerm...@gmail.com

unread,
Jan 27, 2009, 10:53:49 AM1/27/09
to
Hello,

I am trying to create a glue layer between SpiderMonkey and 3rd party
DOM implementation, using resolve hooks for lazy definition of DOM
objects and properties.

Seems I cannot understand well what to do in case when a new DOM
object is constructed, like this:

var pic = new window.Image();

In this case a resolve hook is called for 'Image' object, asking to
resolve 'prototype' property. At this point I do not understand how to
resolve. I have tried everything but each time I get exception:

{TypeError: Image is not a constructor}

Please help,
Alex Y.

0 new messages