Simpler try/finally in deps

This commit is contained in:
David Greenspan
2012-09-16 01:30:16 -07:00
parent e8256ef866
commit ffd6461e58

View File

@@ -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