continuation-local-storage
Advanced tools
Comparing version 1.1.0 to 1.1.1
@@ -13,8 +13,5 @@ 'use strict'; | ||
// TODO: by default, contexts nest -- but domains won't | ||
this._stack = []; | ||
// every namespace has a default / "global" context | ||
// FIXME: domains require different behavior to preserve distinction between | ||
// _makeCallback and _makeDomainCallback, for performance reasons. | ||
this.active = Object.create(null); | ||
@@ -45,4 +42,8 @@ } | ||
this.enter(context); | ||
fn(context); | ||
this.exit(context); | ||
try { | ||
fn(context); | ||
} | ||
finally { | ||
this.exit(context); | ||
} | ||
return context; | ||
@@ -49,0 +50,0 @@ }; |
{ | ||
"name": "continuation-local-storage", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "userland implementation of https://github.com/joyent/node/issues/5243", | ||
@@ -5,0 +5,0 @@ "main": "context.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
206
13507