diff options
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/LibWasm/test-wasm.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Tests/LibWasm/test-wasm.cpp b/Tests/LibWasm/test-wasm.cpp index 5a99fdc4fd..398b78f76f 100644 --- a/Tests/LibWasm/test-wasm.cpp +++ b/Tests/LibWasm/test-wasm.cpp @@ -153,8 +153,8 @@ TESTJS_GLOBAL_FUNCTION(compare_typed_arrays, compareTypedArrays) void WebAssemblyModule::initialize(JS::Realm& realm) { Base::initialize(realm); - define_native_function("getExport", get_export, 1, JS::default_attributes); - define_native_function("invoke", wasm_invoke, 1, JS::default_attributes); + define_native_function(realm, "getExport", get_export, 1, JS::default_attributes); + define_native_function(realm, "invoke", wasm_invoke, 1, JS::default_attributes); } JS_DEFINE_NATIVE_FUNCTION(WebAssemblyModule::get_export) |