Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

contextify

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

contextify - npm Package Compare versions

Comparing version 0.1.8 to 0.1.9

7

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc