Skip to content

Commit

Permalink
Changed order of module scope modifications
Browse files Browse the repository at this point in the history
As suggested by @grob in #383 this is the fix to keep the Ringo shell working with the latest Rhino.
  • Loading branch information
botic committed Apr 16, 2018
1 parent 3ace545 commit acbdb41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/org/ringojs/engine/ModuleScope.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,10 @@ public ModuleScope(String moduleId, Trackable source,
Scriptable prototype, RingoWorker worker) {
setParentScope(null);
setPrototype(prototype);
// for activating the ImporterTopLevel import* functions
activatePrototypeMap(3);
// prototype properties include constructor property which we don't need
delete("constructor");
// for activating the ImporterTopLevel import* functions
activatePrototypeMap(3);
try {
cacheBuiltins();
} catch (NoSuchMethodError e) {
Expand Down

0 comments on commit acbdb41

Please sign in to comment.