Skip to content

Commit

Permalink
Fix optimized specialization for Struct.
Browse files Browse the repository at this point in the history
Resolves #3388.
  • Loading branch information
jemc committed May 2, 2015
1 parent fce5982 commit 20d0317
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions kernel/delta/struct.rb
Expand Up @@ -92,9 +92,7 @@ def length
CODE

begin
include Module.new do
module_eval code
end
module_eval code
rescue SyntaxError
# SyntaxError means that something is wrong with the
# specialization code. Just eat the error and don't specialize.
Expand Down

0 comments on commit 20d0317

Please sign in to comment.