From b9ed28268c13e6714bfb1038fee3b7df2da020c2 Mon Sep 17 00:00:00 2001 From: Ricky Hanlon Date: Mon, 5 Feb 2024 23:12:18 -0500 Subject: [PATCH] Fix lint --- packages/internal-test-utils/simulateBrowserEventDispatch.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/internal-test-utils/simulateBrowserEventDispatch.js b/packages/internal-test-utils/simulateBrowserEventDispatch.js index daa6d97dafe88..4dcf916a1d12c 100644 --- a/packages/internal-test-utils/simulateBrowserEventDispatch.js +++ b/packages/internal-test-utils/simulateBrowserEventDispatch.js @@ -1,6 +1,6 @@ -const idlUtils = require('jsdom/lib/jsdom/living/generated/utils'); const DOMException = require('domexception/webidl2js-wrapper'); const {nodeRoot} = require('jsdom/lib/jsdom/living/helpers/node'); +const reportException = require('jsdom/lib/jsdom/living/helpers/runtime-script-errors'); const { isNode, isShadowRoot, @@ -11,6 +11,7 @@ const { } = require('jsdom/lib/jsdom/living/helpers/shadow-dom'); const {waitForMicrotasks} = require('./ReactInternalTestUtils'); + const EVENT_PHASE = { NONE: 0, CAPTURING_PHASE: 1, @@ -69,7 +70,7 @@ async function _dispatch(eventImpl, legacyTargetOverrideFlag) { eventImpl._dispatchFlag = true; const targetOverride = legacyTargetOverrideFlag - ? idlUtils.implForWrapper(targetImpl._globalObject._document) + ? wrapperForImpl(targetImpl._globalObject._document) : targetImpl; let relatedTarget = retarget(eventImpl.relatedTarget, targetImpl);