diff --git a/ext/node/polyfills/fs.ts b/ext/node/polyfills/fs.ts index 6751c0b115ea02..09effe710df01b 100644 --- a/ext/node/polyfills/fs.ts +++ b/ext/node/polyfills/fs.ts @@ -3267,6 +3267,8 @@ function watch( ? optionsOrListener2 : undefined; + validateIgnoreOption(options?.ignore, "options.ignore"); + // deno-lint-ignore prefer-primordials const watchPath = getValidatedPath(filename).toString();