Skip to content

Fix crash if #inspect does not return a string value#2668

Merged
matz merged 1 commit intomruby:masterfrom
sdottaka:fix-crash-for-inspect
Dec 12, 2014
Merged

Fix crash if #inspect does not return a string value#2668
matz merged 1 commit intomruby:masterfrom
sdottaka:fix-crash-for-inspect

Conversation

@sdottaka
Copy link
Copy Markdown
Contributor

case 1

class A; def inspect; 1; end; end
A.new.a

case 2

class A
  def self.inspect
    1
  end
  alias_method :a, :b
end

case 1
~~~
class A; def inspect; 1; end; end
A.new.a
~~~

case 2

~~~
class A
  def self.inspect
    1
  end
  alias_method :a, :b
end
~~~
matz added a commit that referenced this pull request Dec 12, 2014
Fix crash if #inspect does not return a string value
@matz matz merged commit f148110 into mruby:master Dec 12, 2014
@sdottaka sdottaka deleted the fix-crash-for-inspect branch December 12, 2014 14:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants