Fix WASM Jump/Branch implementation and HTTPServer listen() functionality

Co-authored-by: moe-charm <217100418+moe-charm@users.noreply.github.com>
This commit is contained in:
copilot-swe-agent[bot]
2025-08-14 07:14:45 +00:00
parent d1c82cfb28
commit 85a5ce053d
7 changed files with 177 additions and 21 deletions

20
test_socket_direct.nyash Normal file
View File

@ -0,0 +1,20 @@
// Test SocketBox directly
static box Main {
init { socket, console }
main() {
me.socket = new SocketBox()
me.console = new ConsoleBox()
// Test bind and listen operations directly on SocketBox
local bindResult = me.socket.bind("127.0.0.1", 8080)
me.console.log("SocketBox Bind result:")
print(bindResult)
local listenResult = me.socket.listen(10)
me.console.log("SocketBox Listen result:")
print(listenResult)
return listenResult
}
}