Skip to content

Commit 7fb907a

Browse files
Always clean up global.self as Nashorn allows it now
https://bugs.openjdk.java.net/browse/JDK-8034055 is reported fixed in 8u20 which is ancient.
1 parent 36bfc6a commit 7fb907a

1 file changed

Lines changed: 2 additions & 7 deletions

File tree

src/main/js/lib/scriptcraft.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -696,13 +696,8 @@ function __onEnable(__engine, __plugin, __script) {
696696
);
697697
throw e;
698698
} finally {
699-
/*
700-
wph 20140312 don't delete self on nashorn until https://bugs.openjdk.java.net/browse/JDK-8034055 is fixed
701-
*/
702-
if (!nashorn) {
703-
delete global.self;
704-
delete global.__engine;
705-
}
699+
delete global.self;
700+
delete global.__engine;
706701
}
707702
}
708703
if (cmdName == 'jsp') {

0 commit comments

Comments
 (0)