Skip to content

Conversation

@danielmorrison
Copy link

In apps that run with --enable=frozen-string-literal we can get a FrozenError.

Using String.new instead of '' fixes that without breaking it for anyone else.

When running the specs with frozen strings (RUBYOPT="--enable=frozen-string-literal" rake), there were three test files that also generate errors. I added the magic comment: # frozen-string-literal: false
to those to work both ways.

I have a related PR on http-2 to get all the specs passing: igrigorik/http-2#161

In apps that run with --enable=frozen-string-literal we can get a FrozenError.

Using String.new instead of '' fixes that without breaking it for anyone else.

When running the specs with frozen strings (RUBYOPT="--enable=frozen-string-literal" rake), there were three files that generate errors. I added the magic comment:
# frozen-string-literal: false
to those to work both ways.

I have a related PR on http-2 to get all the specs passing: igrigorik/http-2#161
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant