Skip to content

Commit

Permalink
Flip-flops work now, don't reject AOT
Browse files Browse the repository at this point in the history
  • Loading branch information
headius committed Oct 31, 2024
1 parent af1e0b5 commit 97e39d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/src/main/java/org/jruby/ir/Compiler.java
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ protected ScriptAndCode execute(final Ruby runtime, final IRScriptBody scope, Cl
byte[] bytecode;

// Check for eval in any scope, which isn't supported for AOT right now
if (scope.anyUsesEval() || scope.hasFlipFlops()) {
throw new NotCompilableException("AOT not supported for scripts containing eval or flip-flops.");
if (scope.anyUsesEval()) {
throw new NotCompilableException("AOT not supported for scripts containing eval.");
}

boolean cacheClasses = Options.COMPILE_CACHE_CLASSES.load();
Expand Down

0 comments on commit 97e39d6

Please sign in to comment.