From 7f3246e4582a488327f2a9da01111db1a4a32b91 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Wed, 30 Jul 2025 07:32:58 +0900 Subject: chore: enable common ruleset of ecs --- src/WebAssembly/Execution/Allocator.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/WebAssembly/Execution/Allocator.php') diff --git a/src/WebAssembly/Execution/Allocator.php b/src/WebAssembly/Execution/Allocator.php index 79f8679..a84abd3 100644 --- a/src/WebAssembly/Execution/Allocator.php +++ b/src/WebAssembly/Execution/Allocator.php @@ -66,7 +66,7 @@ final readonly class Allocator ExternVals\Table::class => $m->tableAddrs[] = $externVal->addr, ExternVals\Mem::class => $m->memAddrs[] = $externVal->addr, ExternVals\Global_::class => $m->globalAddrs[] = $externVal->addr, - default => throw new RuntimeException("unreachable"), + default => throw new RuntimeException('unreachable'), }; } @@ -104,7 +104,7 @@ final readonly class Allocator ExportDescs\Table::class => ExternVal::Table($m->tableAddrs[$export->desc->table]), ExportDescs\Mem::class => ExternVal::Mem($m->memAddrs[$export->desc->mem]), ExportDescs\Global_::class => ExternVal::Global_($m->globalAddrs[$export->desc->global]), - default => throw new RuntimeException("unreachable"), + default => throw new RuntimeException('unreachable'), }; $m->exports[] = new ExportInst($export->name, $value); } -- cgit v1.2.3-70-g09d2