By STEVE LeBLANC , Associated Press

BOSTON (AP) — The Massachusetts House has approved a bill that would outlaw devices that allow semi-automatic weapons to mimic fully automatic guns.

The House voted Wednesday 151-3 in favor of legislation to ban bump stocks, such as those used by the Las Vegas shooter.

READ MORE: Bill Russell Talks To CBS News About Pioneering Career With Boston Celtics And His Legacy

Republican Gov. Charlie Baker supports a ban.

The devices fit over the stock and grip of a semi-automatic rifle and allow the weapon to fire continuously.

READ MORE: WATCH LIVE: High School Super Bowls: 5 pm Abington vs. Rockland and 7:30 pm Scituate vs. Duxbury

State Rep. David Linsky, a Natick Democrat, filed legislation that would outlaw any devices that — when attached to a rifle, shotgun or firearm — increase the rate of discharge of the weapon.

Those who violate the measure would face between three and 20 years in prison. The prohibition would take effect 180 days after becoming law.

MORE NEWS: Shakeel Bodden Charged With Murder In Stabbing Death At Somerville Home

(© Copyright 2017 The Associated Press. All Rights Reserved. This material may not be published, broadcast, rewritten or redistributed.)