From 75de0f6806daa093b457184e87db5440580e1310 Mon Sep 17 00:00:00 2001 From: Nikita Gazarov Date: Fri, 29 Nov 2024 21:34:41 -0800 Subject: [PATCH] Make dom.URL.searchParams readonly (val) --- api-reports/2_12.txt | 2 +- api-reports/2_13.txt | 2 +- dom/src/main/scala/org/scalajs/dom/URL.scala | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/api-reports/2_12.txt b/api-reports/2_12.txt index 45b5aac03..80e5fbb2d 100644 --- a/api-reports/2_12.txt +++ b/api-reports/2_12.txt @@ -27196,7 +27196,7 @@ URL[JC] var pathname: String URL[JC] var port: String URL[JC] var protocol: String URL[JC] var search: String -URL[JC] var searchParams: URLSearchParams +URL[JC] val searchParams: URLSearchParams URL[JC] var username: String URL[JO] def createObjectURL(blob: Blob): String URL[JO] def createObjectURL(src: MediaSource): String diff --git a/api-reports/2_13.txt b/api-reports/2_13.txt index 45b5aac03..80e5fbb2d 100644 --- a/api-reports/2_13.txt +++ b/api-reports/2_13.txt @@ -27196,7 +27196,7 @@ URL[JC] var pathname: String URL[JC] var port: String URL[JC] var protocol: String URL[JC] var search: String -URL[JC] var searchParams: URLSearchParams +URL[JC] val searchParams: URLSearchParams URL[JC] var username: String URL[JO] def createObjectURL(blob: Blob): String URL[JO] def createObjectURL(src: MediaSource): String diff --git a/dom/src/main/scala/org/scalajs/dom/URL.scala b/dom/src/main/scala/org/scalajs/dom/URL.scala index aea3f3933..5a13a48a5 100644 --- a/dom/src/main/scala/org/scalajs/dom/URL.scala +++ b/dom/src/main/scala/org/scalajs/dom/URL.scala @@ -62,5 +62,5 @@ class URL(url: String, base: String = js.native) extends js.Object { /** Is a DOMString containing a '#' followed by the fragment identifier of the URL. */ var hash: String = js.native - var searchParams: URLSearchParams = js.native + val searchParams: URLSearchParams = js.native }