Skip to content

Commit 48a2da7

Browse files
committed
Simplify #allocate + #initialize to just super()
1 parent 5dfa1a4 commit 48a2da7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/main/ruby/core/exception.rb

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -391,9 +391,7 @@ def self.new(*args)
391391
end
392392
end
393393

394-
error = self.allocate
395-
Truffle.privately { error.initialize(*args) }
396-
error
394+
super(*args)
397395
end
398396
end
399397

0 commit comments

Comments
 (0)