public virtual void InitStandardObjects(Context cx, bool @sealed)
{
// Assume that Context.initStandardObjects initialize JavaImporter
// property lazily so the above init call is not yet called
cx.InitStandardObjects(this, @sealed);
topScopeFlag = true;
// If seal is true then exportAsJSClass(cx, seal) would seal
// this obj. Since this is scope as well, it would not allow
// to add variables.
IdFunctionObject ctor = ExportAsJSClass(MAX_PROTOTYPE_ID, this, false);
if (@sealed)
{
ctor.SealObject();
}
// delete "constructor" defined by exportAsJSClass so "constructor"
// name would refer to Object.constructor
// and not to JavaImporter.prototype.constructor.
Delete("constructor");
}