]> khamidou — GitHub mirrors - electron.git/commitdiff
spec: vm.createContext should not crash
authorCheng Zhao <zcbenz@gmail.com>
Thu, 17 Sep 2015 08:06:19 +0000 (16:06 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Thu, 17 Sep 2015 08:06:19 +0000 (16:06 +0800)
spec/node-spec.coffee

index f998a8c5b7b2afa1d5ae92681fb1f5a9fae78dab..c8d569e01ada2b83aefdd96f241851d8dd4e2336 100644 (file)
@@ -148,3 +148,7 @@ describe 'node feature', ->
     # Not reliable on some machines
     xit 'should have isTTY defined', ->
       assert.equal typeof(process.stdout.isTTY), 'boolean'
+
+  describe 'vm.createContext', ->
+    it 'should not crash', ->
+      require('vm').runInNewContext('')