mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Merge branch 'pr/5271' into devel
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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 */) {
|
||||
|
||||
Reference in New Issue
Block a user