contextify
Advanced tools
Comparing version 0.1.8 to 0.1.9
{ | ||
"name": "contextify", | ||
"version": "0.1.8", | ||
"version": "0.1.9", | ||
"description": "Turn an object into a persistent execution context.", | ||
@@ -14,3 +14,4 @@ "author": "Brian McDaniel <brianmcd05@gmail.com>", | ||
"Rex Morgan (http://www.rexflex.net/)", | ||
"Tom Gallacher <me@tomg.co> (http://tomg.co)" | ||
"Tom Gallacher <me@tomg.co> (http://tomg.co)", | ||
"Kevin Decker <kpdecker@gmail.com> (http://www.incaseofstairs.com)" | ||
], | ||
@@ -37,3 +38,3 @@ "keywords": ["context","vm"], | ||
"bindings" : "*", | ||
"nan" : "~1.0.0" | ||
"nan" : "~1.3.0" | ||
}, | ||
@@ -40,0 +41,0 @@ "devDependencies": { |
@@ -254,2 +254,22 @@ var Contextify = require('../lib/contextify.js'); | ||
}, 0); | ||
}, | ||
// Asynchronous context script execution: | ||
// Ensure that async execution is safely executed after dispose | ||
'setTimeout should not fail after dispose' : function (test) { | ||
var sandbox = { | ||
test: test, | ||
setTimeout : setTimeout, | ||
prop1 : 'prop1', | ||
prop2 : 'prop2' | ||
}; | ||
Contextify(sandbox); | ||
sandbox.run("setTimeout(function () {" + | ||
"test.ok(prop1 == 'prop1');" + | ||
"test.ok(prop2 == 'prop2');" + | ||
"test.done();" + | ||
"}, 10)"); | ||
test.equal(sandbox.test1, undefined); | ||
test.equal(sandbox.test2, undefined); | ||
sandbox.dispose(); | ||
} | ||
@@ -256,0 +276,0 @@ }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
41467
591
+ Addednan@1.3.0(transitive)
- Removednan@1.0.0(transitive)
Updatednan@~1.3.0