From 5604655d547b13532efcf1aeb36863f4f57e90cf Mon Sep 17 00:00:00 2001 From: Cheng Zhao Date: Thu, 17 Sep 2015 16:06:19 +0800 Subject: [PATCH] spec: vm.createContext should not crash --- spec/node-spec.coffee | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/spec/node-spec.coffee b/spec/node-spec.coffee index f998a8c5b7..c8d569e01a 100644 --- a/spec/node-spec.coffee +++ b/spec/node-spec.coffee @@ -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('')