var win = window.wrappedJSObject;
Now why does this not work most* of the time:
var a = win.Object;
var b = new a();
var c = b instanceof a;
How do I do the above to get the result that c==true instead of
throwing "invalid 'instanceof' operand"?
Thanks...
-s
* The times it does work, requires chromebug to be installed and
actively adding some things to the watch panel
function instanceOf(object, Klass)
{
while (object != null)
{
if (object == Klass.prototype)
return true;
object = object.__proto__;
}
return false;
}
-s
The above should work. Please file a bug with a testcase?
--
Blake Kaplan