Bump stocks gained national attention after the Las Vegas shooter used them to open fire at an outdoor country music festival, killing 58 people.

Under the bill, a violation would be a class D felony.

Lawmakers who support the ban have said Connecticut cannot afford another mass shooting.

Those against the bill call it unnecessary, saying banning the devices won’t make anyone safer.

Gov. Malloy has been pushing for the ban since he proposed it in January.

He praised its passing, saying, “"We must acknowledge that a patchwork of gun safety laws in each individual state isn't the solution. We must continue to demand federal action by our representatives in Congress to enact these measures on a national basis once and for all."

Several other states have moved to ban the devices after they were used in the Las Vegas concert massacre.