Skip to content

Commit 915b509

Browse files
author
v.karamyshev
committed
Implement URI for pure Wasm (scala-wasm#151)
Add linkTimeIf branches for all JS-dependent operations in URI: - URI parsing: js.RegExp.exec() → java.util.regex.Pattern - Path normalization: js.Array + .join() → Scala Array + StringBuilder - IPv6 detection: js.RegExp.test() → java.util.regex.Pattern - Quoting (5 functions): jsReplace(regex, callback) → quoteWithPattern() - UTF-8 percent-encoding: pure Scala via StandardCharsets.UTF_8 Remove top-level vals with JS types (RegExp, js.Function1) to avoid linker errors; inline them into linkTimeIf JS branches instead. Unblock URITest in pure Wasm test suite. Add 6 new tests covering multi-component quoting, IPv6, normalize edge cases, and non-ASCII.
1 parent 557c646 commit 915b509

3 files changed

Lines changed: 351 additions & 59 deletions

File tree

0 commit comments

Comments
 (0)