This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Tims-MacbookPro:Desktop Tim$ node sand.js | |
| { '0': 'TypeError' | |
| , '1': 'decodeURI' | |
| , '2': 'parseFloat' | |
| , '3': 'Number' | |
| , '4': 'URIError' | |
| , '5': 'encodeURIComponent' | |
| , '6': 'RangeError' | |
| , '7': 'ReferenceError' | |
| , '8': 'RegExp' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| test: 'test' + | |
| #'test' + | |
| 'test' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| exports.profiles = [{ | |
| host: "irc.freenode.net", | |
| port: 6667, | |
| nick: 'elbot_js', | |
| password: null, // null is no password, otherwise a string | |
| user: 'Elbot', | |
| real: 'Test Bot', | |
| channels: ["#botwar", "#node.js"] | |
| }, { | |
| host: "irc.freenode.net", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Tims-MacbookPro:coffee-script Tim$ bin/cake build:all | |
| TypeError: Object #<an Object> has no method 'lstat' | |
| at Object.lstatSync (/usr/local/lib/node/libraries/fs.js:162:21) | |
| at Object.realpathSync (/usr/local/lib/node/libraries/fs.js:321:25) | |
| at Object.<anonymous> (/Users/Tim/Projects/coffee-script/bin/cake:5:37) | |
| at [object Object].<anonymous> (node.js:970:23) | |
| at [object Object].emitSuccess (node.js:283:15) | |
| at [object Object].<anonymous> (node.js:695:21) | |
| at [object Object].emitSuccess (node.js:283:15) | |
| at node.js:552:29 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Tims-MacbookPro:coffee-script Tim$ bin/cake build:full | |
| Error: In Cakefile, too many 2 on line 8 | |
| at Rewriter.<anonymous> (/Users/Tim/Projects/coffee-script/lib/rewriter.js:273:21) | |
| at /Users/Tim/Projects/coffee-script/lib/rewriter.js:279:25 | |
| at Rewriter.scan_tokens (/Users/Tim/Projects/coffee-script/lib/rewriter.js:52:16) | |
| at Rewriter.ensure_balance (/Users/Tim/Projects/coffee-script/lib/rewriter.js:253:12) | |
| at Rewriter.rewrite (/Users/Tim/Projects/coffee-script/lib/rewriter.js:36:12) | |
| at Lexer.tokenize (/Users/Tim/Projects/coffee-script/lib/lexer.js:65:31) | |
| at Object.compile (/Users/Tim/Projects/coffee-script/lib/coffee-script.js:34:34) | |
| at Object.run (/Users/Tim/Projects/coffee-script/lib/coffee-script.js:58:25) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Tims-MacbookPro:coffee-script Tim$ echo "if test = 123 then yay()" | bin/coffee -sc | |
| Error: In stdio, Parse error on line 1: | |
| 3 | |
| Expecting 'TERMINATOR', 'INDENT', 'OUTDENT', 'ASSIGN', '?', ',', '.', 'PROPERTY_ACCESS', 'PROTOTYPE_ACCESS', '::', 'SOAK_ACCESS', 'INDEX_START', 'INDEX_END', 'SOAKED_INDEX_START', 'SOAKED_INDEX_END', '}', 'EXTENDS', '<-', 'CALL_START', 'CALL_END', ']', ')', 'WHILE', 'WHEN', 'FOR', 'IN', 'OF', 'BY', 'IF', 'UNLESS', '-', '+', '--', '++', '*', '/', '%', '<<', '>>', '>>>', '&', '|', '^', '<=', '<', '>', '>=', '==', '!=', 'IS', 'ISNT', '&&', '||', 'AND', 'OR', '-=', '+=', '/=', '*=', '%=', '||=', '&&=', '?=', 'INSTANCEOF' | |
| at parseError (/Users/Tim/Projects/coffee-script/lib/parser.js:433:11) | |
| at Object.parse (/Users/Tim/Projects/coffee-script/lib/parser.js:476:94) | |
| at Object.compile (/Users/Tim/Projects/coffee-script/lib/coffee-script.js:34:22) | |
| at compile_script (/Users/Tim/Projects/coffee-script/lib/command.js:94:27) | |
| at EventEmitter.<anonymous> (/Users/Tim/Projects/coffee |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| func: (should_i) -> | |
| do_it() if should_i = true | |
| somevar: 0 | |
| while should_i = true | |
| do_it() | |
| somevar: somevar + 1 | |
| should_i: false | |
| # Compared to |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Tims-MacbookPro:coffee-script Tim$ git checkout lib && bin/cake build:full | |
| TypeError: In Cakefile, Object true has no method 'compile' | |
| at Object.compile (/Users/Tim/Projects/coffee-script/lib/coffee-script.js:34:51) | |
| at Object.run (/Users/Tim/Projects/coffee-script/lib/coffee-script.js:58:25) | |
| at /Users/Tim/Projects/coffee-script/lib/cake.js:57:20 | |
| at node.js:411:21 | |
| at node.js:810:9 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| asyncFunction: (x, y, z) ~> | |
| yield | |
| readFirstFile: (dir, ~, error) ~> | |
| [err, files]: fs.readdir dir, ~ | |
| return error(err) if err | |
| [err, out]: fs.readFile files[o], ~ | |
| return error(err) if err | |
| yield content |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| registerExtension(".js", "compile", function (content, cb) { | |
| content = content.replace(/^\#\!.*/, ''); | |
| content = 'this.__proto__ = GLOBAL; var local = LOCAL = this;' + content; | |
| var sandbox = { | |
| exports: this.exports, | |
| require: this.require, | |
| module: this, | |
| __filename: this.filename, | |
| __dirname: dirname(this.filename) | |
| }; |