From 3e15b2ffe1353aa1a5da0e94acffa77186fc24a5 Mon Sep 17 00:00:00 2001 From: Reilly Grant Date: Mon, 2 Feb 2026 10:28:34 -0800 Subject: [PATCH] Make readable and writable attributes nullable The stream attributes are nullable as they are initially null before the port is opened and become null after it is closed or a fatal error occurs. Fixed #219. --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 2fab555..4a537bc 100644 --- a/index.html +++ b/index.html @@ -436,8 +436,8 @@

attribute EventHandler onconnect; attribute EventHandler ondisconnect; readonly attribute boolean connected; - readonly attribute ReadableStream readable; - readonly attribute WritableStream writable; + readonly attribute ReadableStream? readable; + readonly attribute WritableStream? writable; SerialPortInfo getInfo();