Browse Source

Tests: Replace {'if' => 'ifdef'} AK_OS_EMSCRIPTEN

Our main build doesn't have -Werror-undef, so this went unnoticed.
Ali Mohammad Pur 2 năm trước cách đây
mục cha
commit
9ca41a181d
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      Tests/LibJS/test262-runner.cpp

+ 1 - 1
Tests/LibJS/test262-runner.cpp

@@ -560,7 +560,7 @@ void __assertion_failed(char const* assertion)
     handle_failed_assert(assertion);
 }
 #else
-#    if AK_OS_EMSCRIPTEN
+#    ifdef AK_OS_EMSCRIPTEN
 extern "C" __attribute__((__noreturn__)) void __assert_fail(char const* assertion, char const* file, int line, char const* function)
 #    else
 extern "C" __attribute__((__noreturn__)) void __assert_fail(char const* assertion, char const* file, unsigned int line, char const* function)