diff options
author | Ali Mohammad Pur <ali.mpfard@gmail.com> | 2021-07-15 00:00:45 +0430 |
---|---|---|
committer | Ali Mohammad Pur <ali.mpfard@gmail.com> | 2021-07-17 01:13:39 +0430 |
commit | 65cd5526cbfd2e287e68f27df999a2758611f638 (patch) | |
tree | a8031dce5376f61969982af74c9d5df311e4b0e8 /Userland/Libraries/LibWeb/WebAssembly | |
parent | 70b94f58b2692308f7295065d945bdd834bc465f (diff) | |
download | serenity-65cd5526cbfd2e287e68f27df999a2758611f638.zip |
LibWasm+Everywhere: Make the instruction count limit configurable
...and enable it for LibWeb and test-wasm.
Note that `wasm` will not be limited by this.
Diffstat (limited to 'Userland/Libraries/LibWeb/WebAssembly')
-rw-r--r-- | Userland/Libraries/LibWeb/WebAssembly/WebAssemblyObject.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyObject.cpp b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyObject.cpp index 96654696eb..d383994ad1 100644 --- a/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyObject.cpp +++ b/Userland/Libraries/LibWeb/WebAssembly/WebAssemblyObject.cpp @@ -25,6 +25,7 @@ namespace Web::Bindings { WebAssemblyObject::WebAssemblyObject(JS::GlobalObject& global_object) : Object(*global_object.object_prototype()) { + s_abstract_machine.enable_instruction_count_limit(); } void WebAssemblyObject::initialize(JS::GlobalObject& global_object) |