From fbe84e376c22c7da56f12bd15a9945d0deeb7b22 Mon Sep 17 00:00:00 2001 From: Michael Ficarra Date: Thu, 10 Nov 2011 01:09:21 -0500 Subject: [PATCH] forgot to build 11544f271737146e38a97d0371076f52949820fa --- lib/coffee-script/browser.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/coffee-script/browser.js b/lib/coffee-script/browser.js index ec2e4793..e6a6b5c4 100644 --- a/lib/coffee-script/browser.js +++ b/lib/coffee-script/browser.js @@ -5,8 +5,10 @@ CoffeeScript.require = require; + if (typeof global === "undefined" || global === null) global = this; + CoffeeScript.eval = function(code, options) { - return eval(CoffeeScript.compile(code, options)); + return global.eval(CoffeeScript.compile(code, options)); }; CoffeeScript.run = function(code, options) {