net-http2 icon indicating copy to clipboard operation
net-http2 copied to clipboard

Support running with --enable=frozen-string-literal

Open danielmorrison opened this issue 3 years ago • 0 comments

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: https://github.com/igrigorik/http-2/pull/161

danielmorrison avatar Sep 14 '22 15:09 danielmorrison