Skip to content

Commit 66152dd

Browse files
committed
shim: Remove getter syntax
1 parent 39d0a6b commit 66152dd

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

shim.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -436,9 +436,11 @@
436436
, matches = patch("matches", "return!!X(a)(t)", 0, selectorFn)
437437

438438
try {
439+
O[a = "addEventListener"]("t", null, Object.defineProperties({}, {
440+
capture: { get: function() { canCapture = 1 } }
441+
}))
439442
b = "removeEventListener"
440443
c = "O.call(t,a,b,X(c)?!!c.capture:!!c)"
441-
O[a = "addEventListener"]("t", null, { get capture() { canCapture = 1 }})
442444
if (!canCapture) {
443445
patch("c:" + a, c, 1, isObj)
444446
patch("c:" + b, c, 1, isObj)

0 commit comments

Comments
 (0)