AoLoader overloads WebAssembly.compile and WebAssembly.compileStreaming in order to apply metering to wasm binaries. This is activated via passing a applyMetering flag in the importObject
Problem
The CU currently does not pass this flag
Solution
Add an environment variable to the CU to enable/disable metering. It should default to enabled.
Background
AoLoader
overloadsWebAssembly.compile
andWebAssembly.compileStreaming
in order to apply metering to wasm binaries. This is activated via passing aapplyMetering
flag in theimportObject
Problem
The CU currently does not pass this flag
Solution
Add an environment variable to the CU to enable/disable metering. It should default to enabled.