For example, if I just run the following:
node opal.min.js
The result is:
/home/benjamin/workspace/1/opal.min.js:1
klass){return obj.toString()}else{return obj.$inspect()}})}(self)})(Opal);(fun
^
ReferenceError: Opal is not defined
at Object.<anonymous> (/home/benjamin/workspace/1/opal.min.js:1:15264)
at Module._compile (module.js:456:26)
at Object.Module._extensions..js (module.js:474:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:312:12)
at Function.Module.runMain (module.js:497:10)
at startup (node.js:119:16)
at node.js:906:3
However, if I load opal in a page in Chrome and compile a "hello world" script, it runs just fine with no complaint. I can't figure out why this is happening. I'd really like to be able to run these scripts using Node.