Skip to content

defined? ::A::B doesn't work if A is not defined #140

timfel opened this Issue Aug 16, 2012 · 0 comments

1 participant

MagLev Engineering Team member
timfel commented Aug 16, 2012

doing this on MagLev tries to resolve up to the last part of a Module definition and checks only if that is defined. It should instead check for each part.

This causes a problem when trying to use Tilt with Haml, as Tilt checks defined? ::Haml::Engine before loading Haml

@timfel timfel closed this in 59f3aaa Aug 16, 2012
@timfel timfel added a commit that referenced this issue Aug 30, 2012
@timfel timfel add test for #140 1e97768
@krono krono added a commit that referenced this issue Oct 11, 2012
@krono krono Merge branch 'MagLev-1.1' of into MagLev-1.1
* 'MagLev-1.1' of
  Revert "provide ruby_strdup" until I figure out why it fails to compile any C-ext with this
  add empty definitions for safe functions, sqlite3 gem uses some
  provide ruby_strdup
  allow aliasing of gsub by providing generic version
  run new test with vmunit tests
  add test for #140
  add test
  merge multiple initialize into one generic version, that can be correctly aliased
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.