coffee-script
coffee-script copied to clipboard
IcedCoffeeScript
hi, im compiling some coffee-script to javascript in an ace-editor, so i use the browser version of coffee-script and do CoffeeScript.compile('coffee-code'); and out comes javascript code. Now i would like...
I love IcedCoffeeScript! Thanks so much for putting it together. Brilliant stuff. I'm using it in my rails project, using the iced-rails gem, which depends on the iced-coffee-script gem (the...
If a variable with the name `iced` exists, `await`/`defer` will cause a TypeError. ``` iced = 0 await asyncFunc defer value console.log value ``` I've looked at the compiled js...
my app.js is: ``` require("iced-coffee-script"); require("./serverOneNode.iced"); ``` when I run it: ``` node app.js ``` got error: ``` /projectPath/node_modules/iced-coffee-script/lib/coffee-script/coffee-script.js:200 throw new Error("Use CoffeeScript.register() or require the coffee-s ^ Error: Use...
if I require an iced file that uses await, I get this error: ReferenceError: iced is not defined I fix it by adding to the top of the required file;...
I found #35 is also about error handling. But here I mean handling `Exceptions` instead of `Async Errors`. What I'm trying to achieve is let the exception in the following...
This is just a preliminary demonstration of promise-style await, built as an extension of iced. If fn is an async function that returns a Promise, then you can now say...
The following code can't be translated: ``` coffee-script foo = (x, cb)-> cb(x) f = (x)-> await foo(x, defer(bar)) bar ||= "" #bar ?= "" alert bar #THE VARIABLE "BAR"...
Using the I just upgraded from 1.6.3-f to 1.7.1-f (both minified) and when I try to call `CoffeeScript.compile` I now get a `ReferenceError: "CoffeeScript" is not defined.` error. I realize...
This commit is the same as jashkenas/coffeescript#3794, which fixes zaach/jison#243. I don't know whether you'd rather merge this fix by itself, or merge with upstream to get the fix that...