From 55dd28375827184535ac82820e2b42546303d749 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Sun, 26 Feb 2023 18:44:14 +0100 Subject: [PATCH] tools: fix linter message when using global `DOMException` Refs: https://github.com/nodejs/node/blob/757c10414776b6f035ced453599527a841f47d6e/lib/internal/util.js#L601-L610 PR-URL: https://github.com/nodejs/node/pull/46822 Reviewed-By: James M Snell Reviewed-By: Debadree Chatterjee Reviewed-By: Yongsheng Zhang Reviewed-By: Anatoli Papirovski Reviewed-By: Colin Ihrig --- lib/.eslintrc.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/.eslintrc.yaml b/lib/.eslintrc.yaml index ad0a015723bc3a..55ca324876c920 100644 --- a/lib/.eslintrc.yaml +++ b/lib/.eslintrc.yaml @@ -61,7 +61,7 @@ rules: - name: DecompressionStream message: Use `const { DecompressionStream } = require('internal/webstreams/compression')` instead of the global. - name: DOMException - message: Use lazy function `const { lazyDOMException } = require('internal/util');` instead of the global. + message: Use lazy function `const { lazyDOMExceptionClass } = require('internal/util');` instead of the global. - name: Event message: Use `const { Event } = require('internal/event_target');` instead of the global. - name: EventTarget