tessel / t1-runtime

[UNMAINTAINED] Tessel 1 JavaScript runtime.
Other
117 stars 33 forks source link

Colony is not as strict about undefined variables as Node #641

Closed kevinmehall closed 10 years ago

kevinmehall commented 10 years ago
% cat foo.js
console.log('log', foo)
% node foo.js
/tmp/foo.js:1
on (exports, require, module, __filename, __dirname) { console.log('log', foo)
                                                                          ^
ReferenceError: foo is not defined
    at Object.<anonymous> (/home/km/tm/accel-mma84/foo.js:1:82)
    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:902:3
% tessel run foo.js
TESSEL! Connected to TM-00-04-f000da30-00544f4b-3a702586.
WARN There is a newer version of firmware available. You should run "tessel update".
INFO Bundling directory /home/km/tm/accel-mma84
INFO Deploying bundle (1.27 MB)...
INFO Running script...
log 
johnnyman727 commented 10 years ago

I believe this is a duplicate of https://github.com/tessel/runtime/issues/221.

kevinmehall commented 10 years ago

Yep