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: #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 targos committed Jul 2, 2019
1 parent 4973f21 commit e6c7ebe
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 e6c7ebe

Please sign in to comment.