Skip to content

Commit

Permalink
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -40,6 +40,14 @@ public RubyBasicObject initialize(RubyException exception, UndefinedPlaceholder
return nil();
}

@Specialization(guards = {"isNil(object)"})
public RubyBasicObject initialize(RubyException exception, RubyBasicObject object) {
CompilerDirectives.transferToInterpreter();

exception.initialize(getContext().makeString(""));
return nil();
}

@Specialization
public RubyBasicObject initialize(RubyException exception, RubyString message) {
CompilerDirectives.transferToInterpreter();

0 comments on commit 73f56cf

Please sign in to comment.