We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f8ba95 commit a24718cCopy full SHA for a24718c
Tests/LibWeb/Text/input/include.js
@@ -121,7 +121,15 @@ class HTTPTestServer {
121
}
122
123
124
-const __httpTestServer = new HTTPTestServer(`http://localhost:${internals.getEchoServerPort()}`);
+const __httpTestServer = (function () {
125
+ if (globalThis.internals && globalThis.internals.getEchoServerPort)
126
+ return new HTTPTestServer(`http://localhost:${internals.getEchoServerPort()}`);
127
+
128
+ return null;
129
+})();
130
131
function httpTestServer() {
132
+ if (!__httpTestServer)
133
+ throw new Error("window.internals must be exposed to use HTTPTestServer");
134
return __httpTestServer;
135
0 commit comments