★ wanayoo — archive 1999 https://github.com/nodejs/node/commit/e6c7ebe90cNouvelle recherche | Portail wanayoo
Skip to content
Permalink
Browse files
vm: increase code coverage of source_text_module.js
PR-URL: #28363
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de>
Reviewed-By: Rich Trott <rtrott@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
  • Loading branch information
kball authored and targos committed Jul 2, 2019
1 parent 4973f21 commit e6c7ebe90c609db5f3658a0c16f6965af18d35ad
Showing with 8 additions and 0 deletions.
  1. +8 −0 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);
}

0 comments on commit e6c7ebe

Please sign in to comment.