diff --git a/Userland/Utilities/js.cpp b/Userland/Utilities/js.cpp index 9844c2c454..5b5cf5934e 100644 --- a/Userland/Utilities/js.cpp +++ b/Userland/Utilities/js.cpp @@ -61,6 +61,7 @@ #include #include #include +#include #include #include #include @@ -1105,6 +1106,10 @@ public: ErrorOr serenity_main(Main::Arguments arguments) { +#ifdef __serenity__ + TRY(System::pledge("stdio rpath wpath cpath tty sigaction", nullptr)); +#endif + bool gc_on_every_allocation = false; bool disable_syntax_highlight = false; Vector script_paths;