mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Catch errors in Meteor.flush()
This commit is contained in:
@@ -59,7 +59,11 @@
|
||||
|
||||
_.each(pending, function (ctx) {
|
||||
_.each(ctx._callbacks, function (f) {
|
||||
f(ctx); // XXX wrap in try?
|
||||
try {
|
||||
f(ctx);
|
||||
} catch (e) {
|
||||
Meteor._debug("Exception from Meteor.flush:", e);
|
||||
}
|
||||
});
|
||||
delete ctx._callbacks; // maybe help the GC
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user