Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Kernel#raise isn't available in BasicObject in Ruby 1.9

  • Loading branch information...
commit 4e73aaf91fbaa6891bdb69d97670b5aa08bffc9c 1 parent 6147e9d
@ryoqun ryoqun authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 kernel/bootstrap/weakref.rb
View
6 kernel/bootstrap/weakref.rb
@@ -11,17 +11,17 @@ def self.new
def __setobj__(obj)
Rubinius.primitive :weakref_set_object
- raise PrimitiveFailure, "WeakRef#__setobj__ failed"
+ ::Kernel.raise PrimitiveFailure, "WeakRef#__setobj__ failed"
end
def __object__
Rubinius.primitive :weakref_object
- raise PrimitiveFailure, "WeakRef#__object__ failed"
+ ::Kernel.raise PrimitiveFailure, "WeakRef#__object__ failed"
end
def __getobj__
obj = __object__()
- raise RefError, "Object has been collected as garbage" unless obj
+ ::Kernel.raise RefError, "Object has been collected as garbage" unless obj
return obj
end
Please sign in to comment.
Something went wrong with that request. Please try again.