Skip to content

Commit

Permalink
vm: increase code coverage of source_text_module.js
Browse files Browse the repository at this point in the history
PR-URL: nodejs#28363
Reviewed-By: Anna Henningsen <[email protected]>
Reviewed-By: Ruben Bridgewater <[email protected]>
Reviewed-By: Rich Trott <[email protected]>
Reviewed-By: James M Snell <[email protected]>
  • Loading branch information
kball authored and addaleax committed Jun 25, 2019
1 parent 37efecb commit 6c2f78e
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions test/parallel/test-vm-module-basic.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 6c2f78e

Please sign in to comment.