Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Array#pop, Array#shift, Array#clear don't check whether array is frozen #3379

clayton-shopify opened this issue Jan 6, 2017 · 0 comments


Copy link

> a = [1, 2, 3].freeze
 => [1, 2, 3]
> a.pop
 => 3
> a
 => [1, 2]
> a.shift
 => 1
> a
 => [2]
> a.clear
 => []

This issue was reported by

@matz matz closed this as completed in 392d7fb Jan 7, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
None yet
None yet

No branches or pull requests

1 participant