diff --git a/test/parallel/test-vm-module-basic.js b/test/parallel/test-vm-module-basic.js index caf4be328d5873..76a8e8a3d2893c 100644 --- a/test/parallel/test-vm-module-basic.js +++ b/test/parallel/test-vm-module-basic.js @@ -82,3 +82,11 @@ const util = require('util'); ); assert.strictEqual(util.inspect(m, { depth: -1 }), '[SourceTextModule]'); } + +// Check dependencies getter returns same object every time +{ + const m = new SourceTextModule(''); + const dep = m.dependencySpecifiers; + assert.notStrictEqual(dep, undefined); + assert.strictEqual(dep, m.dependencySpecifiers); +}