[INFO] Copying builtin /usr/local/lib/node_modules/alloy/Alloy/builtins/string.js to /Users/tlukasavage/Development/alloy/test/projects/Harness/Resources/alloy/string.js
node.js:201
throw e; // process.nextTick error, or 'error' event on first tick
^
TypeError: Cannot call method 'apply' of undefined
at walk (/usr/local/lib/node_modules/alloy/Alloy/uglify-js/lib/process.js:226:36)
at doit (/usr/local/lib/node_modules/alloy/Alloy/uglify-js/lib/process.js:2039:37)
at /usr/local/lib/node_modules/alloy/Alloy/uglify-js/lib/process.js:2056:72
at redo_if (/usr/local/lib/node_modules/alloy/Alloy/uglify-js/lib/process.js:827:30)
at Array.<anonymous> (/usr/local/lib/node_modules/alloy/Alloy/uglify-js/lib/process.js:869:43)
at walk (/usr/local/lib/node_modules/alloy/Alloy/uglify-js/lib/process.js:221:47)
at /usr/local/lib/node_modules/alloy/Alloy/uglify-js/lib/process.js:880:24
at Object.with_walkers (/usr/local/lib/node_modules/alloy/Alloy/uglify-js/lib/process.js:249:27)
at prepare_ifs (/usr/local/lib/node_modules/alloy/Alloy/uglify-js/lib/process.js:863:18)
at /usr/local/lib/node_modules/alloy/Alloy/uglify-js/lib/process.js:1407:31
at Object.with_walkers (/usr/local/lib/node_modules/alloy/Alloy/uglify-js/lib/process.js:249:27)
at Object.ast_squeeze (/usr/local/lib/node_modules/alloy/Alloy/uglify-js/lib/process.js:1306:18)
at Object.formatAST (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/compilerUtils.js:736:12)
at Object.makeRequiresRelative (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/requires.js:132:12)
at /usr/local/lib/node_modules/alloy/Alloy/commands/compile/index.js:489:26
at Array.forEach (native)
at Function.<anonymous> (/usr/local/lib/node_modules/alloy/Alloy/lib/alloy/underscore.js:11:39)
at optimizeCompiledCode (/usr/local/lib/node_modules/alloy/Alloy/commands/compile/index.js:483:4)
at /usr/local/lib/node_modules/alloy/Alloy/commands/compile/index.js:176:2
at Object.<anonymous> (/usr/local/lib/node_modules/alloy/Alloy/alloy.js:101:44)
at Module._compile (module.js:441:26)
at Object..js (module.js:459:10)
at Module.load (module.js:348:31)
at Function._load (module.js:308:12)
at Module.require (module.js:354:17)
at require (module.js:370:17)
at Object.<anonymous> (/usr/local/lib/node_modules/alloy/bin/alloy:3:1)
at Module._compile (module.js:441:26)
at Object..js (module.js:459:10)
at Module.load (module.js:348:31)
at Function._load (module.js:308:12)
at Array.0 (module.js:479:10)
at EventEmitter._tickCallback (node.js:192:40)
[ERROR] Alloy compile failed
[ERROR] Error: Traceback (most recent call last):
File "/Users/tlukasavage/Library/Application Support/Titanium/mobilesdk/osx/2.1.1.GA/iphone/builder.py", line 1115, in main
p.compile(compiler_config)
File "/Users/tlukasavage/Development/alloy/test/projects/Harness/plugins/ti.alloy/plugin.py", line 62, in compile
sys.exit(retcode)
SystemExit: 1
The issue us resolved simply by adding curly braces to the code: