Class.name is readonly in strict mode
in iced-coffee-script, class Class will be compiled into:
var Class;
Class = (function() {
Class.name = 'Class';
function Class() {}
return Class;
})();
in strict mode while add "use strict"; in front
Class.name = 'Class'; thow exception because class.name is readonly
and i look at current verion of coffee-script it will not add Class.name = 'Class';:
var Class;
Class = (function() {
function Class() {}
return Class;
})();
Iced is a fork of github coffeescript, so besides await and defer, it has the same features github coffee has.
So this is a jashkenas/coffee-script issue, not iced's.
I created a bug for this: #2139 in original repo.
i tried current released version 1.2.0 of original coffeescript do not have these 2 issues. so why? diff branch?
1.2.0 is npm version of coffeescript.
The next major release is 1.3.0 which is been in development for two months and iced is using it. It was not yet released on npm.
got it thx