External interrupt fires early?

I see there already is an issue, #510, attachInterrupt(...) should ignore pending interrupts (clear interrupt flag) [imported] · Issue #244 · arduino/ArduinoCore-avr · GitHub