test: improve test-vm-cached-data.js

* verify error message by adding 2nd argument to throws in test-assert

PR-URL: https://github.com/nodejs/node/pull/11974
Reviewed-By: Colin Ihrig <cjihrig@gmail.com>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Daijiro Wachi <daijiro.wachi@gmail.com>
Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
This commit is contained in:
Nick Peleh authored and Myles Borins committed 2017-04-18 20:02:16 -04:00
1 parent aab9526d69
commit 6063a4ac17
1 file changed
+1 -1
+1 -1
View File
@@ -89,4 +89,4 @@ assert.throws(() => {
new vm.Script('function abc() {}', {
cachedData: 'ohai'
});
});
}, /^TypeError: options.cachedData must be a Buffer instance$/);