Skip to content

Instantly share code, notes, and snippets.

@aseemk
Created April 23, 2012 15:38
Show Gist options
  • Save aseemk/2471728 to your computer and use it in GitHub Desktop.
Save aseemk/2471728 to your computer and use it in GitHub Desktop.
Streamline error: To use 'arguments' inside streamlined function, read the doc and set the 'ninja' option
module.exports = class Model
toString: (raw) ->
return super if raw
'test 1 2 3'
// Generated by CoffeeScript 1.3.1
var Model;
module.exports = Model = (function() {
Model.name = 'Model';
function Model() {}
Model.prototype.toString = function(raw) {
if (raw) {
return Model.__super__.toString.apply(this, arguments);
}
return 'test 1 2 3';
};
return Model;
})();
@aseemk
Copy link
Author

aseemk commented May 11, 2012

This was my mistake -- I was compiling CoffeeScript twice by accident.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment