Merge branch 'pr/5271' into devel

This commit is contained in:
Avital Oliver
2015-10-06 15:10:38 -07:00
2 changed files with 4 additions and 0 deletions

View File

@@ -13,6 +13,8 @@
The complete list can be found
[here](https://github.com/meteor/ecmascript-runtime/blob/master/server.js).
* Check type of `onException` argument to `bindEnvironment`. #5271
## v1.2.0.2, 2015-Sept-28
* Update Crosswalk plugin for Cordova to 1.3.1. [#5267](https://github.com/meteor/meteor/issues/5267)

View File

@@ -94,6 +94,8 @@ Meteor.bindEnvironment = function (func, onException, _this) {
error && error.stack || error
);
};
} else if (typeof(onException) !== 'function') {
throw new Error('onException argument must be a function, string or undefined for Meteor.bindEnvironment().');
}
return function (/* arguments */) {