Skip to content

Commit f3bc87f

Browse files
committed
Do not compile top level reporter blocks
There's no reason to support this yet
1 parent 7d86ce2 commit f3bc87f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/engine/internal/engine.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -265,7 +265,7 @@ void Engine::compile()
265265
Compiler compiler(this, target.get());
266266
const auto &blocks = target->blocks();
267267
for (auto block : blocks) {
268-
if (block->topLevel() && !block->shadow()) {
268+
if (block->topLevel() && !block->isTopLevelReporter() && !block->shadow()) {
269269
auto section = blockSection(block->opcode());
270270
if (section) {
271271
auto script = std::make_shared<Script>(target.get(), block, this);

0 commit comments

Comments
 (0)