From 48ef995206fc86d17cc46db3d77a74c31f766bd2 Mon Sep 17 00:00:00 2001 From: David Greenspan Date: Wed, 21 Nov 2012 20:51:13 -0800 Subject: [PATCH] .return to ['return'] for JS parsability --- packages/meteor/fiber_helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/meteor/fiber_helpers.js b/packages/meteor/fiber_helpers.js index 680b3e5545..63fd77ec7d 100644 --- a/packages/meteor/fiber_helpers.js +++ b/packages/meteor/fiber_helpers.js @@ -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