Skip to content

Commit

Permalink
Merge pull request #28 from oftn/global-global
Browse files Browse the repository at this point in the history
Added `global` as an alias for the global object in the sandbox context
  • Loading branch information
imbcmdth committed Nov 18, 2013
2 parents 1ca6ab8 + 66a2897 commit 951c7b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions ecmabot-utils.js
Expand Up @@ -21,6 +21,9 @@ global.print = global.alert = global.console.log;

global.version = typeof version === "undefined" ? "unknown" : version;

Object.defineProperty(global, "global", {
value: global
});

/**
* Pretty-prints a Javascript value for viewing.
Expand Down

0 comments on commit 951c7b7

Please sign in to comment.