From 326f91bbeff795712cdd3fd773298219eecc57de Mon Sep 17 00:00:00 2001 From: Chris Wanstrath Date: Sat, 27 Aug 2011 21:06:41 -0700 Subject: [PATCH] use JSCocoa to eval require.js - shows up in web inspector! --- src/bootstrap.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bootstrap.coffee b/src/bootstrap.coffee index 2a9a7d3c6..a0e6b7506 100644 --- a/src/bootstrap.coffee +++ b/src/bootstrap.coffee @@ -8,8 +8,8 @@ console.log = (thing) -> # load require() function root = OSX.NSBundle.mainBundle.resourcePath -code = OSX.NSString.stringWithContentsOfFile "#{root}/src/require.js" -eval "(function(){ #{code} })(this);" +code = OSX.NSString.stringWithContentsOfFile path = "#{root}/src/require.js" +__jsc__.evalJSString_withScriptPath code, path console.log 'require tests:' console.log require.resolve 'underscore'