mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Simpler try/finally in deps
This commit is contained in:
@@ -16,9 +16,8 @@
|
||||
run: function (f) {
|
||||
var previous = Context.current;
|
||||
Context.current = this;
|
||||
try { var ret = f(); }
|
||||
try { return f(); }
|
||||
finally { Context.current = previous; }
|
||||
return ret;
|
||||
},
|
||||
|
||||
// we specifically guarantee that this doesn't call any
|
||||
|
||||
Reference in New Issue
Block a user