Skip to content
This repository was archived by the owner on Apr 22, 2020. It is now read-only.

Commit abb06d9

Browse files
make window an alias for global scope when interpreting JS
1 parent d8c7a78 commit abb06d9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

tools/lang-handler-aliases.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ for JS in "$LANG_DIR"/lang-*.js; do
4141
("$JS_INTERPRETER" \
4242
<(echo '
4343
44+
var window = this;
4445
var PR = {
4546
registerLangHandler: function (_, exts) {
4647
for (var i = 0, n = exts.length; i < n; ++i) {

0 commit comments

Comments
 (0)