spec: vm.createContext should not crash

This commit is contained in:
Cheng Zhao 2015-09-17 16:06:19 +08:00
parent 93639a080c
commit 5604655d54

View file

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