diff --git a/packages/graalvm/src/main/kotlin/elide/runtime/gvm/internals/intrinsics/js/url/URLIntrinsic.kt b/packages/graalvm/src/main/kotlin/elide/runtime/gvm/internals/intrinsics/js/url/URLIntrinsic.kt index 54db694983..97b8f10fed 100644 --- a/packages/graalvm/src/main/kotlin/elide/runtime/gvm/internals/intrinsics/js/url/URLIntrinsic.kt +++ b/packages/graalvm/src/main/kotlin/elide/runtime/gvm/internals/intrinsics/js/url/URLIntrinsic.kt @@ -360,7 +360,12 @@ private const val GLOBAL_URL = "URL" // Calculate a spec-compliant value for the `searchParams` property. @Suppress("UNUSED_PARAMETER") @JvmStatic private fun computeSearchParams(uri: NativeURL, proto: KnownProtocol?) = cachedParse { - TODO("not yet implemented") + val query = uri.query + if (query.isNullOrBlank()) { + URLSearchParamsIntrinsic.URLSearchParams() + } else { + URLSearchParamsIntrinsic.URLSearchParams(query) + } } // Calculate a spec-compliant value for the `host` property.