.return to ['return'] for JS parsability

This commit is contained in:
David Greenspan
2012-11-21 20:51:13 -08:00
parent ad7098307d
commit 48ef995206

View File

@@ -22,7 +22,7 @@ Meteor._noYieldsAllowed = function (f) {
};
// js2-mode AST blows up when parsing 'future.return()', so alias.
Future.prototype.ret = Future.prototype.return;
Future.prototype.ret = Future.prototype['return'];
// Meteor._SynchronousQueue is a queue which runs task functions serially.
// Tasks are assumed to be synchronous: ie, it's assumed that they are