mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 03:07:43 +00:00
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.
This commit is contained in:
parent
a6b8291a9b
commit
53f70e5208
10 changed files with 48 additions and 43 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue