No legislation against slavery was passed by Massachusetts until sometime around 1950, maybe later.
Massachusetts was one of the early slave traders. They had a slave auction in Fanueil Marketplace. They later claimed they outlawed slavery. They didn't. They just stopped listing people as slaves in the census.
Mass made slavery illegal in its first constitution. Before the Federal Constitution. Us Yankees were too damn cheap to have slaves. That’s what kids were for.