Skip to content

Set toplevel module#4431

Merged
headius merged 2 commits intojruby:masterfrom
headius:set-toplevel-module
Jan 9, 2017
Merged

Set toplevel module#4431
headius merged 2 commits intojruby:masterfrom
headius:set-toplevel-module

Conversation

@headius
Copy link
Member

@headius headius commented Jan 9, 2017

This includes a fix for #4416 (setting top-level module when running with -X+C) and enables the test:jruby:aot suite to verify the AOT mode.

The logic that precompiles a 'load'ed or 'require'd file did not
ever call setModule or determineModule on the root scope for that
script body. This caused module definitions to blow up, since they
had no containing scope in which to define the new module.
@headius headius added the jit label Jan 9, 2017
@headius headius added this to the JRuby 9.1.7.0 milestone Jan 9, 2017
@headius headius merged commit 2d090fb into jruby:master Jan 9, 2017
@headius headius deleted the set-toplevel-module branch January 9, 2017 21:50
@kares
Copy link
Member

kares commented Jan 10, 2017

excellent, wanted to add test:jruby:aot as well :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants