We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 056f183 commit 2ebb21bCopy full SHA for 2ebb21b
src/NQP/World.pm
@@ -470,7 +470,10 @@ class NQP::World is HLL::World {
470
471
# Compile and run it.
472
my $code := self.create_code($wrapper, 'BEGIN block', 0);
473
+ my $old_global := pir::get_hll_global__PPs(nqp::list(), 'GLOBAL');
474
+ pir::set_hll_global__vPsP(nqp::list(), 'GLOBAL', $*GLOBALish);
475
$code();
476
+ pir::set_hll_global__vPsP(nqp::list(), 'GLOBAL', $old_global);
477
}
478
479
# Sets NQP language defaults on a block for compilation.
0 commit comments