How can I compile CoffeeScript from .NET?

后端 未结 18 2029
后悔当初
后悔当初 2020-12-23 01:54

I want to write an HttpHandler that compiles CoffeeScript code on-the-fly and sends the resulting JavaScript code. I have tried MS [JScript][1] and IronJS without success. I

18条回答
  •  长情又很酷
    2020-12-23 02:48

    I've tried to compile the extras/coffee-script.js file, unmodified, to jsc, the JScript.NET compiler for .NET, and I got many errors. Here are the noteworthy ones:

    • 'require' is a new reserved word and should not be used as an identifier
    • 'ensure' is a new reserved word and should not be used as an identifier
    • Objects of type 'Global Object' do not have such a member

    Other errors were caused by the above said errors.

提交回复
热议问题