I am trying to link to a prototype of a function loaded through
loadWithNewGlobal.  For example:

var Foo = loadWithNewGlobal("foo.js");

var foo = Object.create(Foo.prototype);


This throws an exception: TypeError: [object Object] is not an Object.

It works ok if I load the function using plain load().

Is this expected?

Thanks,

-- Eric

Reply via email to