contextify
Advanced tools
Comparing version 0.1.6 to 0.1.7
{ | ||
"name": "contextify", | ||
"version": "0.1.6", | ||
"version": "0.1.7", | ||
"description": "Turn an object into a persistent execution context.", | ||
@@ -28,3 +28,4 @@ "author": "Brian McDaniel <brianmcd05@gmail.com>", | ||
"dependencies": { | ||
"bindings" : "*" | ||
"bindings" : "*", | ||
"nan" : "~0.8.0" | ||
}, | ||
@@ -31,0 +32,0 @@ "devDependencies": { |
@@ -390,2 +390,27 @@ var Contextify = require('../lib/contextify.js'); | ||
test.done(); | ||
}, | ||
'test context delete global' : function (test) { | ||
var sandbox = Contextify({}); | ||
sandbox.global = sandbox.getGlobal(); | ||
sandbox.run('delete global.global;'); | ||
test.ok(!sandbox.global); | ||
sandbox.dispose(); | ||
test.done(); | ||
}, | ||
'test context delete unwritable global' : function (test) { | ||
var sandbox = Contextify({}); | ||
Object.defineProperty(sandbox, 'global', { | ||
enumerable: false, | ||
configurable: false, | ||
writable: false, | ||
value: sandbox.getGlobal() | ||
}); | ||
sandbox.run('delete global.global;'); | ||
test.ok(sandbox.global); | ||
test.ok(sandbox.global.global); | ||
sandbox.dispose(); | ||
test.done(); | ||
} | ||
@@ -392,0 +417,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
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
40623
572
2
+ Addednan@~0.8.0
+ Addednan@0.8.0(transitive)