From 3ef0c1c88a0e7a478fd098311146b57136814f11 Mon Sep 17 00:00:00 2001 From: Michael Ficarra Date: Tue, 16 Aug 2011 10:53:08 -0300 Subject: [PATCH] reverting stylistic change from parent commit --- src/coffee-script.coffee | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/coffee-script.coffee b/src/coffee-script.coffee index 9182f5d1..df192a74 100644 --- a/src/coffee-script.coffee +++ b/src/coffee-script.coffee @@ -102,8 +102,10 @@ exports.eval = (code, options = {}) -> o[k] = v for own k, v of options o.bare = on # ensure return value js = compile code, o - if Script then Script.runInContext js, sandbox - else eval js + if Script + Script.runInContext js, sandbox + else + eval js # Instantiate a Lexer for our use here. lexer = new Lexer