Reverse order of global.init() and global.initStandardObjects() invocations. This is

required by Rhino 1.6R1pre and doesn't hurt with Rhino 1.5.
This commit is contained in:
hns 2004-08-30 13:24:43 +00:00
parent 4df534a590
commit 0dd94cd340

View file

@ -91,10 +91,10 @@ public final class RhinoCore {
try { try {
// create global object // create global object
global = new DynamicGlobalObject(this, app); global = new DynamicGlobalObject(this, app);
global.init();
// call the initStandardsObject in ImporterTopLevel so that // call the initStandardsObject in ImporterTopLevel so that
// importClass() and importPackage() are set up. // importClass() and importPackage() are set up.
global.initStandardObjects(context, false); global.initStandardObjects(context, false);
global.init();
pathProto = new PathWrapper(this); pathProto = new PathWrapper(this);