File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
src/main/java/org/truffleruby Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -260,8 +260,6 @@ public void initialize() {
260
260
} else {
261
261
initialized = true ;
262
262
}
263
-
264
- this .preInitializing = false ;
265
263
}
266
264
267
265
/** Re-initialize parts of the RubyContext depending on the running process. This is a small subset of the full
@@ -270,6 +268,10 @@ public void initialize() {
270
268
protected boolean patch (Env newEnv ) {
271
269
this .env = newEnv ;
272
270
this .hasOtherPublicLanguages = computeHasOtherPublicLanguages (newEnv );
271
+ this .preInitializing = newEnv .isPreInitialization ();
272
+ if (preInitializing ) {
273
+ throw CompilerDirectives .shouldNotReachHere ("Expected patch Env#isPreInitialization() to be false" );
274
+ }
273
275
274
276
final Options oldOptions = this .options ;
275
277
final Options newOptions = createOptions (newEnv , language .options );
You can’t perform that action at this time.
0 commit comments