Skip to content

Commit b9ed282

Browse files
committed
Fix lint
1 parent 137a093 commit b9ed282

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

packages/internal-test-utils/simulateBrowserEventDispatch.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
const idlUtils = require('jsdom/lib/jsdom/living/generated/utils');
21
const DOMException = require('domexception/webidl2js-wrapper');
32
const {nodeRoot} = require('jsdom/lib/jsdom/living/helpers/node');
3+
const reportException = require('jsdom/lib/jsdom/living/helpers/runtime-script-errors');
44
const {
55
isNode,
66
isShadowRoot,
@@ -11,6 +11,7 @@ const {
1111
} = require('jsdom/lib/jsdom/living/helpers/shadow-dom');
1212

1313
const {waitForMicrotasks} = require('./ReactInternalTestUtils');
14+
1415
const EVENT_PHASE = {
1516
NONE: 0,
1617
CAPTURING_PHASE: 1,
@@ -69,7 +70,7 @@ async function _dispatch(eventImpl, legacyTargetOverrideFlag) {
6970
eventImpl._dispatchFlag = true;
7071

7172
const targetOverride = legacyTargetOverrideFlag
72-
? idlUtils.implForWrapper(targetImpl._globalObject._document)
73+
? wrapperForImpl(targetImpl._globalObject._document)
7374
: targetImpl;
7475
let relatedTarget = retarget(eventImpl.relatedTarget, targetImpl);
7576

0 commit comments

Comments
 (0)