diff --git a/test/parallel/test-vm-cached-data.js b/test/parallel/test-vm-cached-data.js index 3f74f398b81..a09a41fe986 100644 --- a/test/parallel/test-vm-cached-data.js +++ b/test/parallel/test-vm-cached-data.js @@ -89,4 +89,4 @@ assert.throws(() => { new vm.Script('function abc() {}', { cachedData: 'ohai' }); -}); +}, /^TypeError: options.cachedData must be a Buffer instance$/);