diff --git a/test/parallel/test-vm-cached-data.js b/test/parallel/test-vm-cached-data.js index e2b684bf1d2c31..8dc1fa25756201 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$/);