From 1ca32f975f2524d476199b7f890f5057fa9716a9 Mon Sep 17 00:00:00 2001 From: Tom Linford Date: Wed, 21 Jan 2026 13:03:51 -0800 Subject: [PATCH] Make JS engines optional dependencies when pulling in gost-dom/browser --- README_SCRIPT_ENGINE.md | 67 ++++++++++++++++++++++++++++++++++-- go.mod | 11 ------ go.sum | 24 ++----------- go.work | 8 +++++ internal/test/wpt/go.mod | 1 + internal/test/wpt/go.work | 1 + scripting/sobekengine/go.mod | 17 +++++++++ scripting/v8engine/go.mod | 19 ++++++++++ v8browser/go.mod | 20 +++++++++++ 9 files changed, 132 insertions(+), 36 deletions(-) create mode 100644 go.work create mode 100644 scripting/sobekengine/go.mod create mode 100644 scripting/v8engine/go.mod create mode 100644 v8browser/go.mod diff --git a/README_SCRIPT_ENGINE.md b/README_SCRIPT_ENGINE.md index 7fb769a49..9332fa631 100644 --- a/README_SCRIPT_ENGINE.md +++ b/README_SCRIPT_ENGINE.md @@ -4,10 +4,71 @@ JavaScript execution is performed by an _optional script engine_. I.e., you can create a browser without one, and it'll just execute behaviour for `