Story highlights California would become the fifth state with an assisted-suicide law

Gov. Jerry Brown has yet to indicate his position on the legislation

(CNN) Advocates of assisted suicide secured another major victory after California lawmakers passed legislation that would allow terminally ill people to obtain prescription drugs to hasten their death.

The legislation now goes to California Gov. Jerry Brown, who has yet to indicate his position on the matter.

The state Senate on Friday approved the bill 23-14. The Assembly approved it earlier this week 44-35.

California would become the fifth state in the country to authorize medical aid in dying, according to the nonprofit advocacy group Compassion & Choices.

The measure is modeled after Oregon's death-with-dignity law passed 17 years ago, the group said. States with similar laws are Washington, Montana and Vermont, the group said.