aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/WebAssembly/Execution/TrapKind.php
blob: 35a437290fb8b6936d35a8dd0bcb2f37254dd04f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?php

declare(strict_types=1);

namespace Nsfisis\Waddiwasi\WebAssembly\Execution;

enum TrapKind
{
    case Unknown;
    case Unreachable;
    case OutOfBoundsMemoryAccess;
    case OutOfBoundsTableAccess;
    case UninitializedElement;
    case IndirectCallTypeMismatch;
    case UndefinedElement;
    case DivideByZero;
    case IntegerOverflow;
    case InvalidConversionToInteger;
}