Skip to content

Commit 20d0317

Browse files
committedMay 2, 2015
Fix optimized specialization for Struct.
Resolves #3388.
1 parent fce5982 commit 20d0317

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

Diff for: ‎kernel/delta/struct.rb

+1-3
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,7 @@ def length
9292
CODE
9393

9494
begin
95-
include Module.new do
96-
module_eval code
97-
end
95+
module_eval code
9896
rescue SyntaxError
9997
# SyntaxError means that something is wrong with the
10098
# specialization code. Just eat the error and don't specialize.

0 commit comments

Comments
 (0)