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.