Skip to content

Commit e70ed3c

Browse files
mpelekhMylesBorins
authored andcommitted
test: improve test-vm-cached-data.js
* verify error message by adding 2nd argument to throws in test-assert PR-URL: #11974 Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]> Reviewed-By: Daijiro Wachi <[email protected]> Reviewed-By: Luigi Pinca <[email protected]>
1 parent b48f13a commit e70ed3c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/parallel/test-vm-cached-data.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,4 @@ assert.throws(() => {
8989
new vm.Script('function abc() {}', {
9090
cachedData: 'ohai'
9191
});
92-
});
92+
}, /^TypeError: options.cachedData must be a Buffer instance$/);

0 commit comments

Comments
 (0)