Lazy resolving of prototype property

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
alerma
1/27/2009 3:53:49 PM
netscape.mozilla.jseng 1530 articles. 0 followers. Follow

0 Replies
242 Views

Similar Articles

[PageSpeed] 21

Reply: