Skip to content

Commit 8b69e4b

Browse files
committed
Fixup after rebase.
1 parent ae73204 commit 8b69e4b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

rhino/src/main/java/org/mozilla/javascript/ScriptRuntime.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,7 @@ public static TopLevel initSafeStandardObjects(Context cx, TopLevel scope, boole
187187
scope = new TopLevel();
188188
}
189189

190-
scope.put("global", scope, scope);
190+
scope.put("global", scope, scope.getGlobalThis());
191191

192192
scope.clearCache();
193193
scope.associateValue(LIBRARY_SCOPE_KEY, scope);

0 commit comments

Comments
 (0)