admc / jellyfish

Run your Javascript anywhere.
jelly.io
Other
94 stars 10 forks source link

Out of the box Jellyfish doesn't seem to work :( #16

Open celer opened 11 years ago

celer commented 11 years ago
bash-3.2$ uname -a
Darwin coyote 11.4.2 Darwin Kernel Version 11.4.2: Thu Aug 23 16:25:48 PDT 2012; root:xnu-1699.32.7~1/RELEASE_X86_64 x86_64
bash-3.2$ node -v
v0.8.9

My .jfrc

{ 
  "firefox": "/Applications/Firefox.app/Contents/MacOS/firefox"
  , "chrome": "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome"
  , "safari": "/Applications/Safari.app/Contents/MacOS/Safari"
  , "interface": "Airport"
  , "username": "username" 
  , "accessKey": "apikey" 
  , "browserName": "firefox" 
  , "version": "4.0" 
}
var jellyfish = require('jellyfish');
var assert = require('assert');

var browser = jellyfish.createChrome(function(){
  console.log("Done");
});

Results in

 Caught exception:  :ReferenceError: b is not defined
 Exception Stack:  :ReferenceError: b is not defined
    at new chrome (/private/tmp/node_modules/jellyfish/lib/browsers.js:117:45)
    at browserEnv.init (/private/tmp/node_modules/jellyfish/lib/env/browserEnv.js:12:18)
    at jellyfish.start (/private/tmp/node_modules/jellyfish/lib/main.js:60:13)
    at fs.readFile (fs.js:176:14)
    at Object.oncomplete (fs.js:297:15)

/private/tmp/node_modules/jellyfish/lib/main.js:189
  _this.log.push(['Caught exception: ' + err]);
  ^
ReferenceError: _this is not defined
    at process.<anonymous> (/private/tmp/node_modules/jellyfish/lib/main.js:189:3)
    at process.EventEmitter.emit (events.js:115:20)