From 40e9741e0160019d2c61c81c087f83bfa5b7b343 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miguel=20=C3=81ngel=20Florido=20Cifuentes?= Date: Sun, 24 Nov 2024 10:33:20 +0100 Subject: [PATCH] fix variable declaration for fs in host builtins check --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 6cc975b..4f824cd 100644 --- a/README.md +++ b/README.md @@ -71,8 +71,9 @@ Just like with dynamic import, with a synchronous import, it's possible to check For example, checking if host builtins are available: ```js +let fs; try { - let fs = import.sync('node:fs'); + fs = import.sync('node:fs'); } catch {} if (fs) {