Skip to content

Commit 5dfa1a4

Browse files
committed
Use class.allocate instead of #set_class
1 parent 2159262 commit 5dfa1a4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/main/ruby/core/exception.rb

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

394-
error = allocate
395-
Truffle::Internal::Unsafe.set_class error, self
394+
error = self.allocate
396395
Truffle.privately { error.initialize(*args) }
397396
error
398397
end

0 commit comments

Comments
 (0)