Skip to content

Files

Latest commit

09ae161 · Apr 13, 2024

History

History
This branch is 2586 commits behind coderaiser/putout:master.

processor-wasm

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Nov 13, 2023
Jun 13, 2023
Jul 20, 2022
Jun 9, 2023
Apr 10, 2024
Apr 13, 2024
Jun 9, 2023
Jun 6, 2022
Jun 13, 2023
Apr 8, 2024

@putout/processor-wasm NPM version

WebAssembly is a low-level assembly-like language with a compact binary format that runs with near-native performance. It designed to run alongside JavaScript, allowing both to work together.

(c) MDN

🐊Putout processor adds ability to lint wasm.

Install

npm i @putout/processor-wasm -D

Usage

{
    "processors": ["wasm"]
}

Rules

convert-get-local-to-local-get

The local.get instruction returns the value of the local at index $id in the locals vector of the current function execution. The type parameter is bound to the type of the local.

(c) Wasm Reference Manual

get_local is DEPRECATED.

-get_local $a
+local.get $a

convert-set-local-to-local-set

The local.set instruction returns the value of the local at index $id in the locals vector of the current function execution. The type parameter is bound to the type of the local.

(c) Wasm Reference Manual

set_local is DEPReCATED.

-set_local $a
+local.set $a

License

MIT