mirror of
https://github.com/nodejs/node.git
synced 2024-11-29 23:16:30 +01:00
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:
parent
0d000ca51f
commit
89d9c3f4a7
@ -89,4 +89,4 @@ assert.throws(() => {
|
||||
new vm.Script('function abc() {}', {
|
||||
cachedData: 'ohai'
|
||||
});
|
||||
});
|
||||
}, /^TypeError: options.cachedData must be a Buffer instance$/);
|
||||
|
Loading…
Reference in New Issue
Block a user