summaryrefslogtreecommitdiff
path: root/Tests
diff options
context:
space:
mode:
authorIdan Horowitz <idan.horowitz@gmail.com>2021-07-06 01:12:54 +0300
committerLinus Groh <mail@linusgroh.de>2021-07-06 14:20:30 +0100
commit53f70e520889a58a75e243cb93ed14f08416cf8a (patch)
tree3054922ec60641a56e3ecdc2e8442fa746ad6a0b /Tests
parenta6b8291a9b3f72c6c70141dafb85d380a68ebdd0 (diff)
downloadserenity-53f70e520889a58a75e243cb93ed14f08416cf8a.zip
LibJS: Remove the default length & attributes from define_native_*
These are usually incorrect, and people sometimes forget to add the correct values as a result of them being optional, so they should just be specified explicitly.
Diffstat (limited to 'Tests')
-rw-r--r--Tests/LibWasm/test-wasm.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/LibWasm/test-wasm.cpp b/Tests/LibWasm/test-wasm.cpp
index 62b5f3e49b..2cb6abe619 100644
--- a/Tests/LibWasm/test-wasm.cpp
+++ b/Tests/LibWasm/test-wasm.cpp
@@ -157,8 +157,8 @@ TESTJS_GLOBAL_FUNCTION(compare_typed_arrays, compareTypedArrays)
void WebAssemblyModule::initialize(JS::GlobalObject& global_object)
{
Base::initialize(global_object);
- define_native_function("getExport", get_export);
- define_native_function("invoke", wasm_invoke);
+ define_native_function("getExport", get_export, 1, JS::default_attributes);
+ define_native_function("invoke", wasm_invoke, 1, JS::default_attributes);
}
JS_DEFINE_NATIVE_FUNCTION(WebAssemblyModule::get_export)