diff options
Diffstat (limited to 'Userland/Libraries/LibTest/JavaScriptTestRunner.h')
-rw-r--r-- | Userland/Libraries/LibTest/JavaScriptTestRunner.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Libraries/LibTest/JavaScriptTestRunner.h b/Userland/Libraries/LibTest/JavaScriptTestRunner.h index d7cb06a558..aa70f1f67e 100644 --- a/Userland/Libraries/LibTest/JavaScriptTestRunner.h +++ b/Userland/Libraries/LibTest/JavaScriptTestRunner.h @@ -64,9 +64,9 @@ } __testjs_register_##fn {}; #define TESTJS_GLOBAL_FUNCTION(function, exposed_name, ...) \ - JS_DECLARE_NATIVE_FUNCTION(function); \ + JS_DECLARE_OLD_NATIVE_FUNCTION(function); \ __TESTJS_REGISTER_GLOBAL_FUNCTION(#exposed_name, function, ##__VA_ARGS__); \ - JS_DEFINE_NATIVE_FUNCTION(function) + JS_DEFINE_OLD_NATIVE_FUNCTION(function) #define TESTJS_MAIN_HOOK() \ struct __TestJS_main_hook { \ |