[Git][java-team/scala-js][debian/latest] 6 commits: Repack the orig as +ds without the MDN doc comments

Juan Manuel Méndez Rey (@mendezr) gitlab at salsa.debian.org
Thu Oct 29 13:01:27 GMT 2026



Juan Manuel Méndez Rey pushed to branch debian/latest at Debian Java Maintainers / scala-js


Commits:
5f76d2fa by Juan Manuel Méndez Rey at 2026-10-29T08:35:53+01:00
Repack the orig as +ds without the MDN doc comments

debian/repack-mdn blanks the doc comments of the scala.scalajs.js
sources that quote MDN (CC-BY-SA), keeping line and column numbers.
debian/watch: +ds through Oversionmangle.

- - - - -
f603df18 by Juan Manuel Méndez Rey at 2026-10-29T08:35:55+01:00
New upstream version 1.22.0+ds
- - - - -
5722bd4a by Juan Manuel Méndez Rey at 2026-10-29T08:36:00+01:00
Update upstream source from tag 'upstream/1.22.0+ds'

Update to upstream version '1.22.0+ds'
with Debian dir 6b419717392fd1dffabb26c70d9e1b0ac37c05c7
- - - - -
dcdff67a by Juan Manuel Méndez Rey at 2026-10-29T08:42:48+01:00
d/control: depend on what the installed POMs name

scala-js-library on scala-library-2.13; scala-js on scala-2.13, which
ships the scala-compiler artifact the compiler plugin POM names.

- - - - -
cd2a5206 by Juan Manuel Méndez Rey at 2026-10-29T08:42:50+01:00
d/copyright: holders of code from GWT, Scala and JSR-166; upstream POMs

Record the +ds repack that removes the MDN doc comments, and document
the repack step in README.source.

- - - - -
658fecf9 by Juan Manuel Méndez Rey at 2026-10-29T08:42:52+01:00
d/changelog: 1.22.0+ds-1, replacing the 1.22.0-1 entry that was not accepted

- - - - -


29 changed files:

- debian/README.source
- debian/changelog
- debian/control
- debian/copyright
- + debian/repack-mdn
- debian/watch
- library/src/main/scala-new-collections/scala/scalajs/js/Any.scala
- library/src/main/scala-old-collections/scala/scalajs/js/Any.scala
- library/src/main/scala/scala/scalajs/js/Array.scala
- library/src/main/scala/scala/scalajs/js/BigInt.scala
- library/src/main/scala/scala/scalajs/js/Date.scala
- library/src/main/scala/scala/scalajs/js/Dictionary.scala
- library/src/main/scala/scala/scalajs/js/Dynamic.scala
- library/src/main/scala/scala/scalajs/js/Error.scala
- library/src/main/scala/scala/scalajs/js/FinalizationRegistry.scala
- library/src/main/scala/scala/scalajs/js/Function.scala
- library/src/main/scala/scala/scalajs/js/JSNumberOps.scala
- library/src/main/scala/scala/scalajs/js/JSON.scala
- library/src/main/scala/scala/scalajs/js/JSStringOps.scala
- library/src/main/scala/scala/scalajs/js/Map.scala
- library/src/main/scala/scala/scalajs/js/Math.scala
- library/src/main/scala/scala/scalajs/js/Object.scala
- library/src/main/scala/scala/scalajs/js/RegExp.scala
- library/src/main/scala/scala/scalajs/js/Set.scala
- library/src/main/scala/scala/scalajs/js/ThisFunction.scala
- library/src/main/scala/scala/scalajs/js/Tuple.scala
- library/src/main/scala/scala/scalajs/js/UnicodeNormalizationForm.scala
- library/src/main/scala/scala/scalajs/js/WeakRef.scala
- library/src/main/scala/scala/scalajs/js/special/package.scala


Changes:

=====================================
debian/README.source
=====================================
@@ -4,14 +4,22 @@ scala-js for Debian
 Orig tarballs
 -------------
 
-  scala-js_<v>.orig.tar.xz                   git tag v<v> of scala-js/scala-js
-  scala-js_<v>.orig-logging.tar.xz           git tag v1.2.0 of
-                                             scala-js/scala-js-logging
-  scala-js_<v>.orig-scala213-library.tar.xz  src/library, LICENSE and NOTICE
-                                             of git tag v2.13.18 of scala/scala
+  scala-js_<v>+ds.orig.tar.xz                   git tag v<v> of
+                                                scala-js/scala-js, repacked
+  scala-js_<v>+ds.orig-logging.tar.xz           git tag v1.2.0 of
+                                                scala-js/scala-js-logging
+  scala-js_<v>+ds.orig-scala213-library.tar.xz  src/library, LICENSE and
+                                                NOTICE of git tag v2.13.18
+                                                of scala/scala
 
 All three are made by uscan (debian/watch, "uscan --force-download") and
 kept with pristine-tar; gbp knows the components (debian/gbp.conf).
+Before gbp import-orig, run
+
+  debian/repack-mdn ../scala-js_<v>+ds.orig.tar.xz
+
+It blanks the doc comments of the scala.scalajs.js sources that quote MDN
+(CC-BY-SA) and keeps line and column numbers, so the jars do not change.
 
 - logging: scalajs-logging is a separate upstream repository; the linker
   interface depends on it, and the version is pinned in project/Build.scala


=====================================
debian/changelog
=====================================
@@ -1,5 +1,5 @@
-scala-js (1.22.0-1) unstable; urgency=medium
+scala-js (1.22.0+ds-1) UNRELEASED; urgency=medium
 
   * Initial release. (Closes: #1149816)
 
- -- Juan Manuel Méndez Rey <juan.mendezr at proton.me>  Sat, 03 Oct 2026 08:19:40 +0200
+ -- Juan Manuel Méndez Rey <juan.mendezr at proton.me>  Thu, 29 Oct 2026 08:42:07 +0100


=====================================
debian/control
=====================================
@@ -20,12 +20,12 @@ Package: scala-js
 Architecture: all
 Depends:
  default-jre-headless | java8-runtime-headless,
+ scala-2.13 (>= 2.13.18),
  scala-js-library (= ${source:Version}),
  scala-library-2.13 (>= 2.13.18),
  ${misc:Depends}
 Suggests:
- nodejs,
- scala-2.13
+ nodejs
 Description: Scala.js compiler plugin and linker for Scala 2.13
  Scala.js is the Scala to JavaScript compiler. Programs compiled with it
  run in web browsers and in Node.js, and can use JavaScript libraries and
@@ -43,6 +43,7 @@ Package: scala-js-library
 Architecture: all
 Multi-Arch: foreign
 Depends:
+ scala-library-2.13 (>= 2.13.18),
  ${misc:Depends}
 Description: Scala.js standard library (IR) for Scala 2.13
  Scala.js is the Scala to JavaScript compiler. Programs compiled with it


=====================================
debian/copyright
=====================================
@@ -6,9 +6,14 @@ Source: https://github.com/scala-js/scala-js
  (tag v1.2.0, whole tree) and https://github.com/scala/scala (tag
  v2.13.18, src/library); see debian/README.source.
 Comment:
- The main tarball is upstream's git tag as is. The scala213-library
- component is cut from its upstream git tag by uscan with
- Files-Excluded-scala213-library and Files-Included-scala213-library.
+ The main tarball is upstream's git tag, repacked (+ds) by
+ debian/repack-mdn without the doc comments of the scala.scalajs.js
+ sources that quote MDN (Mozilla Contributors, CC-BY-SA), and without
+ the notice about them. The rest of those files is EPFL's code. See
+ debian/README.source.
+ .
+ The scala213-library component is cut from its upstream git tag by uscan
+ with Files-Excluded-scala213-library and Files-Included-scala213-library.
 Files-Excluded-scala213-library: *
 Files-Included-scala213-library:
  src/library
@@ -22,6 +27,10 @@ Comment:
  Most source files say "Copyright EPFL."; NOTICE says
  "Copyright (c) 2013-2018 EPFL". Scala.js includes software developed at
  EPFL (https://lamp.epfl.ch/ and https://scala.epfl.ch/).
+ .
+ linker-private-library/src/main/scala/org/scalajs/linker/runtime/FloatingPointBitsPolyfills.scala
+ reimplements the algorithm of typedarray.js from
+ https://github.com/inexorabletash/polyfill; no code is copied.
 
 Files: scalalib/overrides/* scalalib/overrides-2.12/* scalalib/overrides-2.13/*
 Copyright: 2002-2013 LAMP/EPFL
@@ -53,6 +62,28 @@ License: public-domain
  .
  and translated to Scala.
 
+Files: javalib/src/main/scala/java/util/random/RandomGenerator.scala
+Copyright: EPFL
+           Doug Lea and members of JCP JSR-166 Expert Group (public domain)
+License: Apache-2.0
+Comment:
+ The bounded nextInt and nextLong algorithms come from ThreadLocalRandom,
+ which is public domain (see above).
+
+Files: compiler/src/main/scala/org/scalajs/nscplugin/ExplicitInnerJS.scala
+       ir/shared/src/main/scala/org/scalajs/ir/Printers.scala
+       javalib/src/main/scala/java/util/RedBlackTree.scala
+       library/src/main/scala-new-collections/scala/scalajs/js/ArrayOps.scala
+       test-suite/shared/src/test/scala/org/scalajs/testsuite/compiler/RegressionTest.scala
+       test-suite/shared/src/test/scala/org/scalajs/testsuite/compiler/SAMWithOverridingBridgesTest.scala
+       test-suite/shared/src/test/scala/org/scalajs/testsuite/compiler/TryFinallyTest.scala
+Copyright: EPFL
+           EPFL and Lightbend, Inc. dba Akka
+License: Apache-2.0
+Comment:
+ Code copied or adapted from Scala (https://github.com/scala/scala), as
+ the files say. The three test files are not built.
+
 Files: javalib/src/main/scala/java/lang/StackTrace.scala
 Copyright: EPFL
 License: Apache-2.0
@@ -72,7 +103,9 @@ Comment:
  fmodd and fmodf are translated from rust-lang/libm fmod.rs, itself from
  musl fmod.c.
 
-Files: test-suite/shared/src/test/scala/org/scalajs/testsuite/javalib/math/BigDecimalArithmeticTest.scala
+Files: javalib/src/main/scala/java/lang/Character.scala
+       javalib/src/main/scala/java/lang/_String.scala
+       test-suite/shared/src/test/scala/org/scalajs/testsuite/javalib/math/BigDecimalArithmeticTest.scala
        test-suite/shared/src/test/scala/org/scalajs/testsuite/javalib/math/BigDecimalCompareTest.scala
        test-suite/shared/src/test/scala/org/scalajs/testsuite/javalib/math/BigDecimalConstructorsTest.scala
        test-suite/shared/src/test/scala/org/scalajs/testsuite/javalib/math/BigDecimalConvertTest.scala
@@ -94,17 +127,19 @@ Files: test-suite/shared/src/test/scala/org/scalajs/testsuite/javalib/math/BigDe
        test-suite/shared/src/test/scala/org/scalajs/testsuite/javalib/math/BigIntegerXorTest.scala
        test-suite/shared/src/test/scala/org/scalajs/testsuite/javalib/math/MathContextTest.scala
        test-suite/shared/src/test/scala/org/scalajs/testsuite/javalib/math/RoundingModeTest.scala
+       test-suite/shared/src/test/scala/org/scalajs/testsuite/javalib/lang/CharacterTest.scala
        test-suite/shared/src/test/scala/org/scalajs/testsuite/javalib/lang/IntegerTest.scala
        test-suite/shared/src/test/scala/org/scalajs/testsuite/javalib/lang/LongTest.scala
        test-suite/shared/src/test/scala/org/scalajs/testsuite/javalib/lang/StringTest.scala
        test-suite/shared/src/test/scala/org/scalajs/testsuite/javalib/util/PropertiesTest.scala
-Copyright: 2009 Google Inc.
+Copyright: 2008-2009 Google Inc.
            The Apache Software Foundation
            EPFL
 License: Apache-2.0
 Comment:
- Ported from GWT's and Apache Harmony's java.math, java.lang and
- java.util tests. Not built.
+ Ported in whole or in part from GWT (https://github.com/gwtproject/gwt)
+ and, for PropertiesTest.scala, from Apache Harmony. Of these files only
+ Character.scala and _String.scala are built.
 
 Files: test-suite/js/src/test/resources/SourceMapTestTemplate.scala
 Copyright: EPFL
@@ -167,9 +202,13 @@ Comment:
 Files: debian/*
 Copyright: 2026 Juan Manuel Méndez Rey <juan.mendezr at proton.me>
 License: Apache-2.0
+
+Files: debian/poms/*
+Copyright: EPFL
+License: Apache-2.0
 Comment:
- debian/poms/*.pom are the POM files published by upstream on Maven
- Central for the same artifacts.
+ Upstream's POM files, as published on Maven Central for the same
+ artifacts.
 
 License: Apache-2.0
  Licensed under the Apache License, Version 2.0 (the "License");


=====================================
debian/repack-mdn
=====================================
@@ -0,0 +1,133 @@
+#!/usr/bin/python3
+# Rewrite the main orig tarball made by uscan without the MDN documentation.
+#
+# Some sources of the Scala.js library (scala.scalajs.js) say that their doc
+# comments marked "MDN" are by Mozilla Contributors under CC-BY-SA, and a few
+# more quote MDN next to a link to it. In every .scala file that carries that
+# notice, such a marker, or (in scala/scalajs/js) a link to MDN, each
+# /** ... */ comment, and the /* ... */ comment holding the notice, is
+# replaced by spaces. Newlines are kept, so line and column numbers of all code, and the
+# compiled classes and IR, do not change. See debian/README.source.
+#
+# Usage: debian/repack-mdn ../scala-js_<version>+ds.orig.tar.xz
+# The tarball is rewritten in place, reproducibly (sorted members, owner
+# root, mtimes kept from the input, xz preset 6).
+
+import io
+import lzma
+import os
+import re
+import sys
+import tarfile
+
+NOTICE = 'Mozilla Contributors'
+MARKER = re.compile(r'^\s*\*\s*MDN\s*$', re.M)
+
+
+def has_mdn(name, src):
+    return (NOTICE in src or MARKER.search(src) is not None
+            or ('/scala/scalajs/js/' in name and 'developer.mozilla.org' in src))
+
+
+def strip_comments(src):
+    out = list(src)
+    touched = set()
+    i, n, line = 0, len(src), 0
+
+    def blank(a, b):
+        ln = line
+        for k in range(a, b):
+            if src[k] == '\n':
+                ln += 1
+            else:
+                out[k] = ' '
+                touched.add(ln)
+
+    while i < n:
+        c = src[i]
+        if c == '\n':
+            line += 1
+            i += 1
+        elif src.startswith('"""', i):
+            j = src.find('"""', i + 3)
+            j = n if j < 0 else j + 3
+            while j < n and src[j] == '"':
+                j += 1
+            line += src.count('\n', i, j)
+            i = j
+        elif c == '"':
+            j = i + 1
+            while j < n and src[j] != '"' and src[j] != '\n':
+                j += 2 if src[j] == '\\' else 1
+            i = j + 1
+        elif c == "'":
+            # character literal: 'x', '\n', 'A'; otherwise skip the quote
+            if i + 2 < n and src[i + 1] != '\\' and src[i + 2] == "'":
+                i += 3
+            elif i + 1 < n and src[i + 1] == '\\':
+                j = src.find("'", i + 2)
+                i = i + 1 if j < 0 or j - i > 8 else j + 1
+            else:
+                i += 1
+        elif src.startswith('//', i):
+            j = src.find('\n', i)
+            i = n if j < 0 else j
+        elif src.startswith('/*', i):
+            start = i
+            depth, j = 1, i + 2
+            while j < n and depth:
+                if src.startswith('/*', j):
+                    depth += 1
+                    j += 2
+                elif src.startswith('*/', j):
+                    depth -= 1
+                    j += 2
+                else:
+                    j += 1
+            doc = src.startswith('/**', start) and not src.startswith('/**/', start)
+            if doc or NOTICE in src[start:j]:
+                blank(start, j)
+            line += src.count('\n', start, j)
+            i = j
+        else:
+            i += 1
+
+    lines = ''.join(out).split('\n')
+    for ln in touched:
+        lines[ln] = lines[ln].rstrip(' \t')
+    return '\n'.join(lines)
+
+
+def main(path):
+    with tarfile.open(path, 'r:xz') as tin:
+        members = sorted(tin.getmembers(), key=lambda m: m.name)
+        data = {m.name: tin.extractfile(m).read() if m.isfile() else None
+                for m in members}
+    buf = io.BytesIO()
+    changed = []
+    with tarfile.open(fileobj=buf, mode='w', format=tarfile.GNU_FORMAT) as tout:
+        for m in members:
+            m.uid = m.gid = 0
+            m.uname = m.gname = 'root'
+            body = data[m.name]
+            if m.isfile() and m.name.endswith('.scala'):
+                src = body.decode('utf-8')
+                if has_mdn(m.name, src):
+                    body = strip_comments(src).encode('utf-8')
+                    m.size = len(body)
+                    changed.append(m.name)
+            tout.addfile(m, io.BytesIO(body) if m.isfile() else None)
+    tmp = path + '.tmp'
+    with open(tmp, 'wb') as f:
+        f.write(lzma.compress(buf.getvalue(), preset=6))
+    if os.path.islink(path):
+        os.unlink(path)
+    os.replace(tmp, path)
+    for name in changed:
+        print('stripped', name)
+
+
+if __name__ == '__main__':
+    if len(sys.argv) != 2:
+        sys.exit('usage: debian/repack-mdn <orig tarball>')
+    main(sys.argv[1])


=====================================
debian/watch
=====================================
@@ -3,6 +3,8 @@ Version: 5
 Source: https://github.com/scala-js/scala-js.git
 Mode: git
 Matching-Pattern: refs/tags/v(1\.[\d.]+)
+Dversionmangle: s/\+ds\d*$//
+Oversionmangle: s/$/+ds/
 Compression: xz
 
 # scalajs-logging, a separate upstream repository and the only dependency


=====================================
library/src/main/scala-new-collections/scala/scalajs/js/Any.scala
=====================================
@@ -10,10 +10,10 @@
  * additional information regarding copyright ownership.
  */
 
-/** All doc-comments marked as "MDN" are by Mozilla Contributors,
- *  distributed under the Creative Commons Attribution-ShareAlike license from
- *  https://developer.mozilla.org/en-US/docs/Web/Reference/API
- */
+
+
+
+
 package scala.scalajs.js
 
 import scala.language.implicitConversions
@@ -25,41 +25,41 @@ import scala.collection.mutable
 
 import scala.scalajs.js
 
-/** Root of the hierarchy of JavaScript types.
- *
- *  Subtypes of [[Any js.Any]] are JavaScript types, which have different
- *  semantics and guarantees than Scala types (subtypes of [[AnyRef]] and
- *  [[AnyVal]]). Operations on JavaScript types behave as the corresponding
- *  operations in the JavaScript language.
- *
- *  You can implement JavaScript types in Scala.js. The implementation
- *  (i.e., the method and constructor bodies) will follow Scala semantics, but
- *  the constructor and methods will be called using JavaScript semantics
- *  (e.g., runtime dispatch).
- *
- *  A JavaScript type that is annotated with [[native @js.native]] is a facade
- *  type to APIs implemented in JavaScript code. Its implementation is
- *  irrelevant and never emitted. As such, all members must be defined with
- *  their right-hand-side being [[native js.native]].
- *  Further, native JavaScript types must be annotated with one of
- *  [[annotation.JSGlobal @JSGlobal]], [[annotation.JSImport @JSImport]],
- *  [[annotation.JSGlobalScope @JSGlobalScope]] to specify where to fetch it
- *  from.
- *
- *  In most cases, you should not directly extend this trait, but rather extend
- *  [[Object js.Object]].
- *
- *  It is not possible to define traits or classes that inherit both from this
- *  trait and a strict subtype of [[AnyRef]]. In fact, you should think of
- *  [[Any js.Any]] as a third direct subclass of [[scala.Any]], besides
- *  [[scala.AnyRef]] and [[scala.AnyVal]].
- *
- *  See the [[http://www.scala-js.org/doc/js-interoperability.html JavaScript
- *  interoperability guide]] of Scala.js for more details.
- */
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
 trait Any extends scala.AnyRef
 
-/** Provides implicit conversions from Scala values to JavaScript values. */
+
 object Any extends LowPrioAnyImplicits {
   @inline implicit def fromUnit(value: Unit): js.Any =
     value.asInstanceOf[js.Any]
@@ -233,32 +233,32 @@ object Any extends LowPrioAnyImplicits {
       private val self: js.Object.type)
       extends AnyVal {
 
-    /** Tests whether the specified object `o` has a property `p` on itself or
-     *  in its prototype chain.
-     *
-     *  This method is the equivalent of `p in o` in JavaScript.
-     */
+
+
+
+
+
     def hasProperty(o: js.Object, p: String): Boolean =
       js.special.in(p, o)
 
-    /** Returns the names of all the enumerable properties of the specified
-     *  object `o`, including properties in its prototype chain.
-     *
-     *  This method returns the same set of names that would be enumerated by
-     *  a for-in loop in JavaScript, in the same order.
-     *
-     *  This method assumes that all keys enumerated by a for-in loop are
-     *  strings. If this is not the case, calling this method is an undefined
-     *  behavior of kind `ClassCastException`. Note that for all *ordinary*
-     *  objects, the ECMAScript 2015 guarantees that this is the case. It might
-     *  be false if `o` is a proxy object or another exotic object.
-     *
-     *  For ordinary objects, if the underlying implementation guarantees an
-     *  order for for-in loops, then this is guaranteed to be consistent with
-     *  [[js.Object.keys]], in the sense that the list returned by
-     *  [[js.Object.keys]] is a sublist of the list returned by this method
-     *  (not just a subset).
-     */
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
     @noinline
     def properties(o: js.Any): js.Array[String] = {
       /* DO NOT touch this code without double-checking the optimized code.


=====================================
library/src/main/scala-old-collections/scala/scalajs/js/Any.scala
=====================================
@@ -10,10 +10,10 @@
  * additional information regarding copyright ownership.
  */
 
-/** All doc-comments marked as "MDN" are by Mozilla Contributors,
- *  distributed under the Creative Commons Attribution-ShareAlike license from
- *  https://developer.mozilla.org/en-US/docs/Web/Reference/API
- */
+
+
+
+
 package scala.scalajs.js
 
 import scala.language.implicitConversions
@@ -23,41 +23,41 @@ import scala.scalajs.js
 import scala.collection.mutable
 import scala.collection.generic.CanBuildFrom
 
-/** Root of the hierarchy of JavaScript types.
- *
- *  Subtypes of [[Any js.Any]] are JavaScript types, which have different
- *  semantics and guarantees than Scala types (subtypes of [[AnyRef]] and
- *  [[AnyVal]]). Operations on JavaScript types behave as the corresponding
- *  operations in the JavaScript language.
- *
- *  You can implement JavaScript types in Scala.js. The implementation
- *  (i.e., the method and constructor bodies) will follow Scala semantics, but
- *  the constructor and methods will be called using JavaScript semantics
- *  (e.g., runtime dispatch).
- *
- *  A JavaScript type that is annotated with [[native @js.native]] is a facade
- *  type to APIs implemented in JavaScript code. Its implementation is
- *  irrelevant and never emitted. As such, all members must be defined with
- *  their right-hand-side being [[native js.native]].
- *  Further, native JavaScript types must be annotated with one of
- *  [[annotation.JSGlobal @JSGlobal]], [[annotation.JSImport @JSImport]],
- *  [[annotation.JSGlobalScope @JSGlobalScope]] to specify where to fetch it
- *  from.
- *
- *  In most cases, you should not directly extend this trait, but rather extend
- *  [[Object js.Object]].
- *
- *  It is not possible to define traits or classes that inherit both from this
- *  trait and a strict subtype of [[AnyRef]]. In fact, you should think of
- *  [[Any js.Any]] as a third direct subclass of [[scala.Any]], besides
- *  [[scala.AnyRef]] and [[scala.AnyVal]].
- *
- *  See the [[http://www.scala-js.org/doc/js-interoperability.html JavaScript
- *  interoperability guide]] of Scala.js for more details.
- */
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
 trait Any extends scala.AnyRef
 
-/** Provides implicit conversions from Scala values to JavaScript values. */
+
 object Any extends js.LowPrioAnyImplicits {
   @inline implicit def fromUnit(value: Unit): js.Any =
     value.asInstanceOf[js.Any]
@@ -206,32 +206,32 @@ object Any extends js.LowPrioAnyImplicits {
       private val self: js.Object.type)
       extends AnyVal {
 
-    /** Tests whether the specified object `o` has a property `p` on itself or
-     *  in its prototype chain.
-     *
-     *  This method is the equivalent of `p in o` in JavaScript.
-     */
+
+
+
+
+
     def hasProperty(o: js.Object, p: String): Boolean =
       js.special.in(p, o)
 
-    /** Returns the names of all the enumerable properties of the specified
-     *  object `o`, including properties in its prototype chain.
-     *
-     *  This method returns the same set of names that would be enumerated by
-     *  a for-in loop in JavaScript, in the same order.
-     *
-     *  This method assumes that all keys enumerated by a for-in loop are
-     *  strings. If this is not the case, calling this method is an undefined
-     *  behavior of kind `ClassCastException`. Note that for all *ordinary*
-     *  objects, the ECMAScript 2015 guarantees that this is the case. It might
-     *  be false if `o` is a proxy object or another exotic object.
-     *
-     *  For ordinary objects, if the underlying implementation guarantees an
-     *  order for for-in loops, then this is guaranteed to be consistent with
-     *  [[js.Object.keys]], in the sense that the list returned by
-     *  [[js.Object.keys]] is a sublist of the list returned by this method
-     *  (not just a subset).
-     */
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
     @noinline
     def properties(o: js.Any): js.Array[String] = {
       /* DO NOT touch this code without double-checking the optimized code.


=====================================
library/src/main/scala/scala/scalajs/js/Array.scala
=====================================
@@ -10,160 +10,160 @@
  * additional information regarding copyright ownership.
  */
 
-/** All doc-comments marked as "MDN" are by Mozilla Contributors,
- *  distributed under the Creative Commons Attribution-ShareAlike license from
- *  https://developer.mozilla.org/en-US/docs/Web/Reference/API
- */
+
+
+
+
 package scala.scalajs.js
 
 import scala.scalajs.js
 import scala.scalajs.js.annotation._
 
-/** Arrays are list-like objects whose prototype has methods to perform
- *  traversal and mutation operations. Neither the length of a JavaScript
- *  array nor the types of its elements are fixed. Since an array's size
- *  length grow or shrink at any time, JavaScript arrays are not guaranteed
- *  to be dense. In general, these are convenient characteristics; but if
- *  these features are not desirable for your particular use, you might
- *  consider using typed arrays.
- *
- *  MDN
- *
- *  To construct a new array with uninitialized elements, use the constructor
- *  of this class. To construct a new array with specified elements, as if
- *  you used the array literal syntax in JavaScript, use the
- *  [[Array$.apply Array.apply]] method instead.
- *
- *  @tparam A Type of the elements of the array
- *
- *  @constructor Creates a new array of length 0.
- */
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
 @js.native
 @JSGlobal
 class Array[A] extends js.Object with js.Iterable[A] {
 
-  /** Creates a new array with the given length.
-   *  @param arrayLength Initial length of the array.
-   */
+
+
+
   def this(arrayLength: Int) = this()
 
   // Do not expose this one - use js.Array(item1, item2, ...) instead
   // def this(items: A*) = this()
 
-  /** Length of the array. */
+
   def length: Int = js.native
 
-  /** Sets the length of the array.
-   *  If the new length is bigger than the old length, created slots are
-   *  filled with `undefined` (irrespective of the type argument `A`!).
-   *  If the new length is smaller than the old length, the array is shrunk.
-   */
+
+
+
+
+
   def length_=(v: Int): Unit = js.native
 
-  /** Access the element at the given index. */
+
   @JSBracketAccess
   def apply(index: Int): A = js.native
 
-  /** Set the element at the given index. */
+
   @JSBracketAccess
   def update(index: Int, value: A): Unit = js.native
 
-  /** concat creates a new array consisting of the elements in the this object
-   *  on which it is called, followed in order by, for each argument, the
-   *  elements of that argument (if the argument is an array) or the argument
-   *  itself (if the argument is not an array).
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
   def concat[B >: A](items: js.Array[_ <: B]*): js.Array[B] = js.native
 
-  /** <span class="badge badge-ecma6" style="float: right;">ECMAScript 6</span>
-   *  JavaScript Iterator for this Array.
-   */
+
+
+
   @JSName(js.Symbol.iterator)
   def jsIterator(): js.Iterator[A] = js.native
 
-  /** The join() method joins all elements of an array into a string.
-   *
-   *  separator Specifies a string to separate each element of the array.
-   *  The separator is converted to a string if necessary. If omitted, the
-   *  array elements are separated with a comma.
-   */
+
+
+
+
+
+
   def join(seperator: String = ","): String = js.native
 
-  /** The pop() method removes the last element from an array and returns that
-   *  element.
-   *
-   *  MDN
-   */
+
+
+
+
+
   def pop(): A = js.native
 
-  /** The push() method mutates an array by appending the given elements and
-   *  returning the new length of the array.
-   *
-   *  MDN
-   */
+
+
+
+
+
   def push(items: A*): Int = js.native
 
-  /** The reverse() method reverses an array in place. The first array element
-   *  becomes the last and the last becomes the first.
-   *
-   *  MDN
-   */
+
+
+
+
+
   @JSName("reverse")
   def reverseInPlace(): js.Array[A] = js.native
 
-  /** The shift() method removes the first element from an array and returns that
-   *  element. This method changes the length of the array.
-   *
-   *  MDN
-   */
+
+
+
+
+
   def shift(): A = js.native
 
-  /** The slice() method returns a shallow copy of a portion of an array.
-   *
-   *  MDN
-   */
+
+
+
+
   @JSName("slice")
   def jsSlice(start: Int = 0, end: Int = Int.MaxValue): js.Array[A] = js.native
 
-  /** The sort() method sorts the elements of an array in place and returns the
-   *  array. The sort is not necessarily stable. The default sort order is
-   *  lexicographic (not numeric).
-   *
-   *  If compareFunction is not supplied, elements are sorted by converting them
-   *  to strings and comparing strings in lexicographic ("dictionary" or "telephone
-   *  book," not numerical) order. For example, "80" comes before "9" in
-   *  lexicographic order, but in a numeric sort 9 comes before 80.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
+
+
+
+
   def sort(compareFn: js.Function2[A, A, Int] = ???): js.Array[A] = js.native
 
-  /** Removes and adds new elements at a given index in the array.
-   *
-   *  This method first removes `deleteCount` elements starting from the index
-   *  `index`, then inserts the new elements `items` at that index.
-   *
-   *  If `index` is negative, it is treated as that number of elements starting
-   *  from the end of the array.
-   *
-   *  @param index       Index where to start changes
-   *  @param deleteCount Number of elements to delete from index
-   *  @param items       Elements to insert at index
-   *  @return An array of the elements that were deleted
-   */
+
+
+
+
+
+
+
+
+
+
+
+
+
   def splice(index: Int, deleteCount: Int, items: A*): js.Array[A] = js.native
 
-  /** The unshift() method adds one or more elements to the beginning of an array
-   *  and returns the new length of the array.
-   *
-   *  MDN
-   */
+
+
+
+
+
   def unshift(items: A*): Int = js.native
 }
 
-/** Factory for [[js.Array]] objects. */
+
 object Array {
   @js.native
   @JSGlobal("Array")
@@ -172,17 +172,17 @@ object Array {
     def from[A](iterable: js.Iterable[A]): js.Array[A] = js.native
   }
 
-  /** Creates a new array with the given items. */
+
   def apply[A](items: A*): js.Array[A] = throw new java.lang.Error("stub")
 
-  /** Returns true if the given value is an array. */
+
   @inline
   def isArray(arg: scala.Any): Boolean = NativeArray.isArray(arg)
 
-  /** <span class="badge badge-ecma2015" style="float: right;">ECMAScript 2015</span>
-   *
-   *  Creates a new array from js.Iterable.
-   */
+
+
+
+
   @inline
   def from[A](iterable: js.Iterable[A]): js.Array[A] = NativeArray.from(iterable)
 }


=====================================
library/src/main/scala/scala/scalajs/js/BigInt.scala
=====================================
@@ -15,16 +15,16 @@ package scala.scalajs.js
 import scala.scalajs.js
 import scala.scalajs.js.annotation._
 
-/** <span class="badge badge-ecma2020" style="float: right;">ECMAScript 2020</span>
- *
- *  A built-in object that provides a way to represent whole numbers larger than
- *  2 ^ 53 - 1, which is the largest number JavaScript can reliably represent
- *  with the Number primitive.
- *
- *  BigInt can be used for arbitrarily large integers.
- *
- *  @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt
- */
+
+
+
+
+
+
+
+
+
+
 @js.native
 @JSGlobal
 final class BigInt private[this] () extends js.Object {
@@ -52,70 +52,70 @@ final class BigInt private[this] () extends js.Object {
   @JSOperator def >(x: BigInt): Boolean = js.native
   @JSOperator def >=(x: BigInt): Boolean = js.native
 
-  /** Returns a localized string representation of this BigInt.
-   *
-   *  @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt/toLocaleString
-   *  @param locale A string with a BCP 47 language tag, or an array of such
-   *                strings. For the general form and interpretation of the
-   *                locales argument, see the Intl page.
-   *  @param options An object with some or all of the properties.
-   */
+
+
+
+
+
+
+
+
   def toLocaleString(locale: String,
       options: BigInt.ToLocaleStringOptions = js.native): String = js.native
 
-  /** Returns a string representation of this BigInt.
-   *
-   *  The trailing "n" is not part of the string.
-   *
-   *  @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt/toString
-   */
+
+
+
+
+
+
   override def toString(): String = js.native
 
-  /** Returns a string representation of this BigInt.
-   *
-   *  The trailing "n" is not part of the string.
-   *
-   *  @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt/toString
-   */
+
+
+
+
+
+
   def toString(radix: Int): String = js.native
 }
 
-/** <span class="badge badge-ecma2020" style="float: right;">ECMAScript 2020</span>
- *
- *  A companion object of BigInt class.
- *
- *  @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt
- */
+
+
+
+
+
+
 @js.native
 @JSGlobal
 object BigInt extends js.Object {
 
-  /** Returns a BigInt from a whole Double.
-   *
-   *  This overload is exposed to allow users to create a BigInt from a Double
-   *  which is greater than Int.MaxValue.
-   *
-   *  @throws RangeError if value has a fractional portion
-   *  @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt
-   */
+
+
+
+
+
+
+
+
   def apply(value: Double): BigInt = js.native
 
-  /** @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt */
+
   def apply(value: Int): BigInt = js.native
 
-  /** @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt */
+
   def apply(value: String): BigInt = js.native
 
-  /** @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt/asIntN */
+
   def asIntN(width: Int, bigint: BigInt): BigInt = js.native
 
-  /** @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt/asUintN */
+
   def asUintN(width: Int, bigint: BigInt): BigInt = js.native
 
-  /** Type of the `options` parameter of [[BigInt.toLocaleString]].
-   *
-   *  @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt/toLocaleString#Parameters
-   */
+
+
+
+
   trait ToLocaleStringOptions extends Object {
     var localeMatcher: js.UndefOr[String] = js.undefined
     var style: js.UndefOr[String] = js.undefined


=====================================
library/src/main/scala/scala/scalajs/js/Date.scala
=====================================
@@ -10,27 +10,27 @@
  * additional information regarding copyright ownership.
  */
 
-/** All doc-comments marked as "MDN" are by Mozilla Contributors,
- *  distributed under the Creative Commons Attribution-ShareAlike license from
- *  https://developer.mozilla.org/en-US/docs/Web/Reference/API
- */
+
+
+
+
 package scala.scalajs.js
 
 import scala.scalajs.js
 import scala.scalajs.js.annotation._
 
-/** Creates a JavaScript Date instance that represents a single moment in time.
- *  Date objects are based on a time value that is the number of milliseconds
- *  since 1 January, 1970 UTC.
- *
- *  MDN
- *
- *  @note
- *   `js.Date` objects can represent an *invalid date*, for example, if they
- *   are constructed from a `String` that cannot be parsed as a date. Most
- *   methods of such a `js.Date` will return `NaN` (for those returning a
- *   `Double`) or other invalid values.
- */
+
+
+
+
+
+
+
+
+
+
+
+
 @js.native
 @JSGlobal
 class Date extends js.Object {
@@ -48,113 +48,113 @@ class Date extends js.Object {
 
   override def valueOf(): Double = js.native
 
-  /** Returns the numeric value of the specified date as the number of
-   *  milliseconds since January 1, 1970, 00:00:00 UTC.
-   *  (Negative values are returned for prior times).
-   *
-   *  MDN
-   */
+
+
+
+
+
+
   def getTime(): Double = js.native
 
-  /** Returns the year (4 digits for 4-digit years) of the specified date according to local time.
-   *
-   *  MDN
-   */
+
+
+
+
   def getFullYear(): Double = js.native
 
-  /** Returns the year (4 digits for 4-digit years) in the specified date according to universal time.
-   *
-   *  MDN
-   */
+
+
+
+
   def getUTCFullYear(): Double = js.native
 
-  /** Returns the month (0-11) in the specified date according to local time.
-   *
-   *  MDN
-   */
+
+
+
+
   def getMonth(): Double = js.native
 
-  /** Returns the month (0-11) in the specified date according to universal time.
-   *
-   *  MDN
-   */
+
+
+
+
   def getUTCMonth(): Double = js.native
 
-  /** Returns the day of the month (1-31) for the specified date according to local time.
-   *
-   *  MDN
-   */
+
+
+
+
   def getDate(): Double = js.native
 
-  /** Returns the day (date) of the month (1-31) in the specified date according to universal time.
-   *
-   *  MDN
-   */
+
+
+
+
   def getUTCDate(): Double = js.native
 
-  /** Returns the day of the week (0-6) for the specified date according to local time.
-   *
-   *  MDN
-   */
+
+
+
+
   def getDay(): Double = js.native
 
-  /** Returns the day of the week (0-6) in the specified date according to universal time.
-   *  MDN
-   */
+
+
+
   def getUTCDay(): Double = js.native
 
-  /** Returns the hour (0-23) in the specified date according to local time.
-   *
-   *  MDN
-   */
+
+
+
+
   def getHours(): Double = js.native
 
-  /** Returns the hours (0-23) in the specified date according to universal time.
-   *
-   *  MDN
-   */
+
+
+
+
   def getUTCHours(): Double = js.native
 
-  /** Returns the minutes (0-59) in the specified date according to local time.
-   *
-   *  MDN
-   */
+
+
+
+
   def getMinutes(): Double = js.native
 
-  /** Returns the minutes (0-59) in the specified date according to universal time.
-   *
-   *  MDN
-   */
+
+
+
+
   def getUTCMinutes(): Double = js.native
 
-  /** Returns the seconds (0-59) in the specified date according to local time.
-   *
-   *  MDN
-   */
+
+
+
+
   def getSeconds(): Double = js.native
 
-  /** Returns the seconds (0-59) in the specified date according to universal time.
-   *
-   *  MDN
-   */
+
+
+
+
   def getUTCSeconds(): Double = js.native
 
-  /** Returns the milliseconds (0-999) in the specified date according to local time.
-   *
-   *  MDN
-   */
+
+
+
+
   def getMilliseconds(): Double = js.native
 
-  /** Returns the milliseconds (0-999) in the specified date according to universal time.
-   *
-   *  MDN
-   */
+
+
+
+
   def getUTCMilliseconds(): Double = js.native
 
-  /** Returns the time-zone offset in minutes for the current locale.
-   *
-   *  MDN
-   */
+
+
+
+
   def getTimezoneOffset(): Double = js.native
 
   def setTime(time: Double): Unit = js.native
@@ -196,41 +196,41 @@ class Date extends js.Object {
   def toJSON(): String = js.native
 }
 
-/** Factory for [[js.Date]] objects. */
+
 @js.native
 @JSGlobal
 object Date extends js.Object {
   def apply(): String = js.native
 
-  /** Parses a string representation of a date and returns the number of
-   *  milliseconds since 1 January, 1970, 00:00:00, local time.
-   *
-   *  The parse method takes a date string (such as "Dec 25, 1995") and returns
-   *  the number of milliseconds since January 1, 1970, 00:00:00 UTC. The local
-   *  time zone is used to interpret arguments that do not contain time zone
-   *  information. This function is useful for setting date values based on
-   *  string values, for example in conjunction with the setTime() method and
-   *  the Date object.
-   *
-   *  Given a string representing a time, parse returns the time value. It
-   *  accepts the RFC2822 / IETF date syntax (RFC2822 Section 3.3), e.g.
-   *  "Mon, 25 Dec 1995 13:30:00 GMT". It understands the continental US time-
-   *  zone abbreviations, but for general use, use a time-zone offset, for
-   *  example, "Mon, 25 Dec 1995 13:30:00 +0430" (4 hours, 30 minutes east of
-   *  the Greenwich meridian). If you do not specify a time zone, the local time
-   *  zone is assumed. GMT and UTC are considered equivalent.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
   def parse(s: String): Double = js.native
 
   def UTC(year: Int, month: Int, date: Int = 1, hours: Int = 0,
       minutes: Int = 0, seconds: Int = 0, ms: Int = 0): Double = js.native
 
-  /** Returns the numeric value corresponding to the current time - the number
-   *  of milliseconds elapsed since 1 January 1970 00:00:00 UTC.
-   *
-   *  MDN
-   */
+
+
+
+
+
   def now(): Double = js.native
 }


=====================================
library/src/main/scala/scala/scalajs/js/Dictionary.scala
=====================================
@@ -10,52 +10,52 @@
  * additional information regarding copyright ownership.
  */
 
-/** All doc-comments marked as "MDN" are by Mozilla Contributors,
- *  distributed under the Creative Commons Attribution-ShareAlike license from
- *  https://developer.mozilla.org/en-US/docs/Web/Reference/API
- */
+
+
+
+
 package scala.scalajs.js
 
 import scala.scalajs.js
 
-/** Dictionary "view" of a JavaScript value.
- *
- *  Using objects as dictionaries (maps from strings to values) through their
- *  properties is a common idiom in JavaScript. This trait lets you treat an
- *  object as such a dictionary, with the familiar API of a Map.
- *
- *  To use it, cast your object, say `x`, into a [[Dictionary]] using
- *  {{{
- *  val xDict = x.asInstanceOf[js.Dictionary[Int]]
- *  }}}
- *  then use it as
- *  {{{
- *  xDict("prop") = 5
- *  println(xDict.get("prop")) // displays Some(5)
- *  xDict -= "prop"            // removes the property "prop"
- *  println(xDict.get("prop")) // displays None
- *  }}}
- *
- *  To enumerate all the keys of a dictionary, use collection methods or
- *  for comprehensions. For example:
- *  {{{
- *  for ((prop, value) <- xDict) {
- *    println(prop + " -> " + value)
- *  }
- *  }}}
- *  Note that this does not enumerate properties in the prototype chain of
- *  `xDict`.
- *
- *  This trait extends [[Any js.Any]] directly, because it is not safe to
- *  call methods of [[Object js.Object]] on it, given that the name of these
- *  methods could be used as keys in the dictionary.
- */
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
 sealed trait Dictionary[A] extends js.Any
 
-/** Factory for [[js.Dictionary]] instances. */
+
 object Dictionary {
 
-  /** Returns a new empty dictionary */
+
   @inline def empty[A]: js.Dictionary[A] =
     (new js.Object).asInstanceOf[js.Dictionary[A]]
 


=====================================
library/src/main/scala/scala/scalajs/js/Dynamic.scala
=====================================
@@ -10,10 +10,10 @@
  * additional information regarding copyright ownership.
  */
 
-/** All doc-comments marked as "MDN" are by Mozilla Contributors,
- *  distributed under the Creative Commons Attribution-ShareAlike license from
- *  https://developer.mozilla.org/en-US/docs/Web/Reference/API
- */
+
+
+
+
 package scala.scalajs.js
 
 import scala.language.dynamics
@@ -21,28 +21,28 @@ import scala.language.dynamics
 import scala.scalajs.js
 import scala.scalajs.js.annotation._
 
-/** Dynamically typed JavaScript value.
- *
- *  Values of this trait accept all possible JavaScript operations in a
- *  dynamically typed way. You can read and write any field, call any method,
- *  apply any JavaScript operator to values of this type.
- */
+
+
+
+
+
+
 @js.native
 sealed trait Dynamic extends js.Any with scala.Dynamic {
 
-  /** Calls a method of this object. */
+
   @JSBracketCall
   def applyDynamic(name: String)(args: js.Any*): js.Dynamic = js.native
 
-  /** Reads a field of this object. */
+
   @JSBracketAccess
   def selectDynamic(name: String): js.Dynamic = js.native
 
-  /** Writes a field of this object. */
+
   @JSBracketAccess
   def updateDynamic(name: String)(value: js.Any): Unit = js.native
 
-  /** Calls this object as a callable. */
+
   def apply(args: js.Any*): js.Dynamic = js.native
 
   @JSOperator def unary_! : js.Dynamic = js.native // scalastyle:ignore
@@ -71,27 +71,27 @@ sealed trait Dynamic extends js.Any with scala.Dynamic {
   @JSOperator def &&(that: js.Dynamic): js.Dynamic = js.native
   @JSOperator def ||(that: js.Dynamic): js.Dynamic = js.native
 
-  /** <span class="badge badge-ecma2016" style="float: right;">ECMAScript 2016</span> */
+
   @JSOperator def **(that: js.Dynamic): js.Dynamic = js.native
 }
 
-/** Factory for dynamically typed JavaScript values. */
+
 object Dynamic {
 
-  /** Dynamic view of the global scope. */
+
   @js.native
   @JSGlobalScope
   object global extends js.Any with scala.Dynamic {
 
-    /** Calls a top-level method (in the global scope). */
+
     @JSBracketCall
     def applyDynamic(name: String)(args: js.Any*): js.Dynamic = js.native
 
-    /** Reads a top-level variable (in the global scope). */
+
     @JSBracketAccess
     def selectDynamic(name: String): js.Dynamic = js.native
 
-    /** Writes to a top-level variable (in the global scope). */
+
     @JSBracketAccess
     def updateDynamic(name: String)(value: js.Any): Unit = js.native
 
@@ -103,37 +103,37 @@ object Dynamic {
      * a straightforward compile-time error.
      */
 
-    /** Cannot be called--provides a compile-time error instead of a silent
-     *  run-time error if one tries to do `js.Dynamic.global(something)`.
-     */
+
+
+
     @deprecated("The global scope cannot be called as function.", "forever")
     def apply(args: js.Any*): js.Dynamic = js.native
   }
 
-  /** Instantiates a new object of a JavaScript class. */
+
   def newInstance(clazz: js.Dynamic)(args: js.Any*): js.Object with js.Dynamic =
     throw new java.lang.Error("stub")
 
-  /** Creates a new object with a literal syntax.
-   *
-   *  For example,
-   *  {{{
-   *  js.Dynamic.literal(foo = 3, bar = "foobar")
-   *  }}}
-   *  returns the JavaScript object
-   *  {{{
-   *  {foo: 3, bar: "foobar"}
-   *  }}}
-   */
+
+
+
+
+
+
+
+
+
+
+
   object literal extends scala.Dynamic {
 
-    /** Literal creation with named arguments.
-     *
-     *  Example:
-     *  {{{
-     *  js.Dynamic.literal(name1 = "value", name2 = "value")
-     *  }}}
-     */
+
+
+
+
+
+
+
     def applyDynamicNamed(name: String)(
         fields: (String, js.Any)*): js.Object with js.Dynamic = {
       js.special.objectLiteral(fields: _*).asInstanceOf[js.Object with js.Dynamic]
@@ -145,13 +145,13 @@ object Dynamic {
      * version.
      */
 
-    /** Literal creation with tuples of key/value.
-     *
-     *  Example:
-     *  {{{
-     *  js.Dynamic.literal("name1" -> "value", "name2" -> "value")
-     *  }}}
-     */
+
+
+
+
+
+
+
     def applyDynamic(name: String)(
         fields: (String, js.Any)*): js.Object with js.Dynamic = {
       js.special.objectLiteral(fields: _*).asInstanceOf[js.Object with js.Dynamic]


=====================================
library/src/main/scala/scala/scalajs/js/Error.scala
=====================================
@@ -10,10 +10,10 @@
  * additional information regarding copyright ownership.
  */
 
-/** All doc-comments marked as "MDN" are by Mozilla Contributors,
- *  distributed under the Creative Commons Attribution-ShareAlike license from
- *  https://developer.mozilla.org/en-US/docs/Web/Reference/API
- */
+
+
+
+
 package scala.scalajs.js
 
 import scala.scalajs.js
@@ -24,10 +24,10 @@ import scala.scalajs.js.annotation._
 class Error(message0: String = "") extends js.Object {
   val name: String = js.native
 
-  /** Human-readable description of the error
-   *
-   *  MDN
-   */
+
+
+
+
   val message: String = js.native
 }
 
@@ -37,19 +37,19 @@ object Error extends js.Object {
   def apply(message: String = ""): js.Error = js.native
 }
 
-/** <span class="badge badge-ecma2021" style="float: right;">ECMAScript 2021</span>
- *  An instance representing an error when several errors need to be wrapped in a single error.
- *
- *  MDN
- */
+
+
+
+
+
 @js.native
 @JSGlobal
 class AggregateError(errors: js.Iterable[scala.Any], message: String = "") extends js.Error {
 
-  /** The errors that were aggregated.
-   *
-   *  MDN
-   */
+
+
+
+
   def errors: js.Array[scala.Any] = js.native
 }
 
@@ -59,11 +59,11 @@ object AggregateError extends js.Object {
   def apply(errors: js.Iterable[scala.Any], message: String = ""): js.AggregateError = js.native
 }
 
-/** An instance representing an error that occurs regarding the global function
- *  `eval()`.
- *
- *  MDN
- */
+
+
+
+
+
 @js.native
 @JSGlobal
 class EvalError(message: String = "") extends js.Error
@@ -74,17 +74,17 @@ object EvalError extends js.Object {
   def apply(message: String = ""): js.EvalError = js.native
 }
 
-/** An instance representing an error that occurs when a numeric variable or
- *  parameter is outside of its valid range.
- *
- *  A RangeError is thrown when trying to pass a number as an argument to a
- *  function that does not allow a range that includes that number. This can
- *  be encountered when to create an array of an illegal length with the Array
- *  constructor, or when passing bad values to the numeric methods toExponential,
- *  toFixed, or toPrecision.
- *
- *  MDN
- */
+
+
+
+
+
+
+
+
+
+
+
 @js.native
 @JSGlobal
 class RangeError(message: String = "") extends js.Error
@@ -95,13 +95,13 @@ object RangeError extends js.Object {
   def apply(message: String = ""): js.RangeError = js.native
 }
 
-/** Represents an error when a non-existent variable is referenced.
- *
- *  A ReferenceError is thrown when trying to dereference a variable that has
- *  not been declared.
- *
- *  MDN
- */
+
+
+
+
+
+
+
 @js.native
 @JSGlobal
 class ReferenceError(message: String = "") extends js.Error
@@ -112,13 +112,13 @@ object ReferenceError extends js.Object {
   def apply(message: String = ""): js.ReferenceError = js.native
 }
 
-/** Represents an error when trying to interpret syntactically invalid code.
- *
- *  A SyntaxError is thrown when the JavaScript engine encounters tokens or
- *  token order that does not conform to the syntax of the language when parsing code.
- *
- *  MDN
- */
+
+
+
+
+
+
+
 @js.native
 @JSGlobal
 class SyntaxError(message: String = "") extends js.Error
@@ -129,13 +129,13 @@ object SyntaxError extends js.Object {
   def apply(message: String = ""): js.SyntaxError = js.native
 }
 
-/** Represents an error when a value is not of the expected type.
- *
- *  A TypeError is thrown when an operand or argument passed to a function is
- *  incompatible with the type expected by that operator or function.
- *
- *  MDN
- */
+
+
+
+
+
+
+
 @js.native
 @JSGlobal
 class TypeError(message: String = "") extends js.Error
@@ -146,12 +146,12 @@ object TypeError extends js.Object {
   def apply(message: String = ""): js.TypeError = js.native
 }
 
-/** Represents an error when a malformed URI is encountered.
- *
- *  A URIError is thrown when the URI handling functions are passed a malformed URI.
- *
- *  MDN
- */
+
+
+
+
+
+
 @js.native
 @JSGlobal
 class URIError(message: String = "") extends js.Error


=====================================
library/src/main/scala/scala/scalajs/js/FinalizationRegistry.scala
=====================================
@@ -15,51 +15,51 @@ package scala.scalajs.js
 import scala.scalajs.js
 import scala.scalajs.js.annotation.JSGlobal
 
-/** <span class="badge badge-ecma2021" style="float: right;">ECMAScript 2021</span>
- *
- *  A FinalizationRegistry object lets you request a callback when an object is garbage-collected.
- *
- *  FinalizationRegistry provides a way to request that a cleanup callback get called at some point
- *  when an object registered with the registry has been reclaimed (garbage-collected).
- *  (Cleanup callbacks are sometimes called finalizers.)
- *
- *  MDN
- *
- *  @tparam A Type of the target object to register
- *  @tparam B Type of value to pass to the finalizer
- *  @tparam C Type of an unregistration token
- */
+
+
+
+
+
+
+
+
+
+
+
+
+
+
 @js.native
 @JSGlobal
 class FinalizationRegistry[-A, -B, -C](finalizer: js.Function1[B, scala.Any]) extends js.Object {
 
-  /** The `register` method registers an object with a FinalizationRegistry instance so that if
-   *  the object is garbage-collected, the registry's callback may get called.
-   *
-   *  @param theObject The target object to register.
-   *  @param heldValue The value to pass to the finalizer for this object. This cannot be the target object.
-   *  @param unregistrationToken
-   *    A token that may be used with the `unregister` method later to
-   *    unregister the target object. If provided (and not `undefined`),
-   *    this must be an object. If not provided, the target cannot be unregistered.
-   */
+
+
+
+
+
+
+
+
+
+
   def register(theObject: A, heldValue: B, unregistrationToken: C): Unit = js.native
 
-  /** The `register` method registers an object with a FinalizationRegistry instance so that if
-   *  the object is garbage-collected, the registry's callback may get called.
-   *
-   *  @param theObject The target object to register.
-   *  @param heldValue The value to pass to the finalizer for this object. This cannot be the target object.
-   */
+
+
+
+
+
+
   def register(theObject: A, heldValue: B): Unit = js.native
 
-  /** The `unregister`` unregisters a target object from a `FinalizationRegistry` instance.
-   *
-   *  When a target object has been reclaimed, it is no longer registered in the registry.
-   *  There is no need to all `unregister` in your cleanup callback. Only call `unregister` if
-   *  you haven't received a cleanup callback and no longer need to receive one.
-   *
-   *  @param unregistrationToken The token used with the register method when registering the target object.
-   */
+
+
+
+
+
+
+
+
   def unregister(unregistrationToken: C): Boolean = js.native
 }


=====================================
library/src/main/scala/scala/scalajs/js/Function.scala
=====================================
@@ -10,93 +10,93 @@
  * additional information regarding copyright ownership.
  */
 
-/** All doc-comments marked as "MDN" are by Mozilla Contributors,
- *  distributed under the Creative Commons Attribution-ShareAlike license from
- *  https://developer.mozilla.org/en-US/docs/Web/Reference/API
- */
+
+
+
+
 package scala.scalajs.js
 
 import scala.scalajs.js
 import scala.scalajs.js.annotation._
 
-/** The Function constructor creates a new Function object. In JavaScript every
- *  function is actually a Function object.
- *
- *  Function objects created with the Function constructor are parsed when the
- *  function is created. This is less efficient than declaring a function and calling
- *  it within your code, because functions declared with the function statement
- *  are parsed with the rest of the code.
- *
- *  All arguments passed to the function are treated as the names of the
- *  identifiers of the parameters in the function to be created, in the order
- *  in which they are passed.
- *
- *  Note: Functions created with the Function constructor do not create closures
- *  to their creation contexts; they always are created in the global scope.
- *  When running them, they will only be able to access their own local
- *  variables and global ones, not the ones from the scope in which the Function
- *  constructor was called. This is different from using eval with code for
- *  a function expression.
- *
- *  Invoking the Function constructor as a function (without using the new
- *  operator) has the same effect as invoking it as a constructor.
- *
- *  MDN
- */
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
 @js.native
 @JSGlobal
 class Function(args: String*) extends js.Object {
 
-  /** length is a property of a function object, and indicates how many arguments
-   *  the function expects, i.e. the number of formal parameters. This number
-   *  does not include the rest parameter. By contrast, arguments.length is local
-   *  to a function and provides the number of arguments actually passed to the
-   *  function.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
+
   val length: Int = native
 
-  /** The call() method calls a function with a given this value and arguments
-   *  provided individually.
-   *
-   *  You can assign a different this object when calling an existing function.
-   *  this refers to the current object, the calling object. With call, you
-   *  can write a method once and then inherit it in another object, without
-   *  having to rewrite the method for the new object.
-   *
-   *  apply is very similar to call(), except for the type of arguments it supports.
-   *  You can use an arguments array instead of a named set of parameters. With
-   *  apply, you can use an array literal, for example,
-   *
-   *  fun.apply(this, ['eat', 'bananas'])
-   *
-   *  or an Array object, for example,
-   *
-   *  fun.apply(this, new Array('eat', 'bananas')).
-   *
-   *  MDN
-   *
-   *  Scala.js-specific note: call() can be used instead of the apply() method
-   *  available in JavaScript. Simply use the :_* notation to expand a Seq as
-   *  variadic arguments, e.g.,
-   *
-   *  {{{
-   *  someFun.call(thisArg, argSeq: _*)
-   *  }}}
-   */
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
   def call(thisArg: js.Any, argArray: js.Any*): js.Dynamic = js.native
 
   // Do not expose apply: use call(thisArg, argArray: _*) instead.
   // def apply[A](thisArg: Any, argArray: Array[A]): Dynamic = native
   // def apply(thisArg: Any): Dynamic = native
 
-  /** The bind() method creates a new function that, when called, has its this
-   *  keyword set to the provided value, with a given sequence of arguments
-   *  preceding any provided when the new function is called.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
   def bind(thisArg: js.Any, argArray: js.Any*): js.Dynamic = js.native
 }
 


=====================================
library/src/main/scala/scala/scalajs/js/JSNumberOps.scala
=====================================
@@ -10,10 +10,10 @@
  * additional information regarding copyright ownership.
  */
 
-/** All doc-comments marked as "MDN" are by Mozilla Contributors,
- *  distributed under the Creative Commons Attribution-ShareAlike license from
- *  https://developer.mozilla.org/en-US/docs/Web/Reference/API
- */
+
+
+
+
 package scala.scalajs.js
 
 import scala.language.implicitConversions
@@ -21,49 +21,49 @@ import scala.language.implicitConversions
 import scala.scalajs.js
 import scala.scalajs.js.annotation._
 
-/** Operations on JavaScript numbers. */
+
 trait JSNumberOps extends js.Any {
 
   def toString(radix: Int): String
 
-  /** Returns a string representation of number that does not use exponential
-   *  notation and has exactly digits digits after the decimal place. The number
-   *  is rounded if necessary, and the fractional part is padded with zeros if
-   *  necessary so that it has the specified length. If number is greater than
-   *  1e+21, this method simply calls Number.prototype.toString() and returns
-   *  a string in exponential notation.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
+
+
   def toFixed(fractionDigits: Int): String
   def toFixed(): String
 
-  /** Returns a string representing a Number object in exponential notation with one
-   *  digit before the decimal point, rounded to fractionDigits digits after the
-   *  decimal point. If the fractionDigits argument is omitted, the number of
-   *  digits after the decimal point defaults to the number of digits necessary
-   *  to represent the value uniquely.
-   *
-   *  If a number has more digits that requested by the fractionDigits parameter,
-   *  the number is rounded to the nearest number represented by fractionDigits
-   *  digits. See the discussion of rounding in the description of the toFixed()
-   *  method, which also applies to toExponential().
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
+
+
+
+
+
+
   def toExponential(fractionDigits: Int): String
   def toExponential(): String
 
-  /** Returns a string representing a Number object in fixed-point or exponential
-   *  notation rounded to precision significant digits. See the discussion of
-   *  rounding in the description of the Number.prototype.toFixed() method, which
-   *  also applies to toPrecision.
-   *
-   *  If the precision argument is omitted, behaves as Number.prototype.toString().
-   *  If it is a non-integer value, it is rounded to the nearest integer.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
+
+
+
   def toPrecision(precision: Int): String
   def toPrecision(): String
 }


=====================================
library/src/main/scala/scala/scalajs/js/JSON.scala
=====================================
@@ -10,75 +10,75 @@
  * additional information regarding copyright ownership.
  */
 
-/** All doc-comments marked as "MDN" are by Mozilla Contributors,
- *  distributed under the Creative Commons Attribution-ShareAlike license from
- *  https://developer.mozilla.org/en-US/docs/Web/Reference/API
- */
+
+
+
+
 package scala.scalajs.js
 
 import scala.scalajs.js
 import scala.scalajs.js.annotation._
 
-/** The JSON object contains methods for converting values to JavaScript Object
- *  Notation (JSON) and for converting JSON to values.
- *
- *  MDN
- */
+
+
+
+
+
 @js.native
 @JSGlobal
 object JSON extends js.Object {
 
-  /** Parse a string as JSON, optionally transforming the value produced by parsing.
-   *  @param text The string to parse as JSON.  See the JSON object for a
-   *             description of JSON syntax.
-   *  @param reviver If a function, prescribes how the value originally produced
-   *                by parsing is transformed, before being returned.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
+
   def parse(text: String,
       reviver: js.Function2[js.Any, js.Any, js.Any] = js.native): js.Dynamic = js.native
 
-  /** Convert a value to JSON, optionally replacing values if a replacer function
-   *  is specified, or optionally including only the specified properties if a
-   *  replacer array is specified.
-   *
-   *   - If the value has a
-   *     [[https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify#toJSON_behavior toJSON()]]
-   *     method, it is responsible to define what data will be serialized.
-   *   - [[Boolean]], [[Double Number]], and [[java.lang.String String]] objects are converted to
-   *     the corresponding primitive values during stringification, in accord
-   *     with the traditional conversion semantics.
-   *   - [[undefined]], [[Function]]s, and [[Symbol]]s are not valid JSON
-   *     values. If any such values are encountered during conversion they are
-   *     either omitted (when found in an [[Object]]) or changed to null (when
-   *     found in an [[Array]]). In Scala.js it is undefined behavior to directly
-   *     pass any of these values to stringify.
-   *   - All [[Symbol]]-keyed properties will be completely ignored, even when
-   *     using the replacer function.
-   *   - The instances of [[Date]] implement the [[Date#toJSON()*]] function by
-   *     returning a string (the same as [[Date#toISOString]]). Thus, they are
-   *     treated as strings.
-   *   - The numbers Infinity and NaN, as well as the value null, are all
-   *     considered null.
-   *   - All the other [[Object]] instances (including Map, Set, WeakMap, and
-   *     WeakSet) will have only their enumerable properties serialized.
-   *
-   *  @param value The value to convert to a JSON string.
-   *  @param replacer If a function, transforms values and properties encountered
-   *                 while stringifying; if an array, specifies the set of
-   *                 properties included in objects in the final string.
-   *  @param space A String or Int that's used to insert white space into the
-   *              output JSON string for readability purposes. If this is an
-   *              Int, it indicates the number of space characters to use as
-   *              white space; this number is capped at 10; values less than 1
-   *              indicate that no space should be used. If this is a String,
-   *              the string (or the first 10 characters of the string, if it's
-   *              longer than that) is used as white space. If this parameter is
-   *              not provided (or is null), no white space is used.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
   def stringify(value: js.Any,
       replacer: js.Function2[String, js.Any, js.Any] = js.native,
       space: Int | String = js.native): String = js.native


=====================================
library/src/main/scala/scala/scalajs/js/JSStringOps.scala
=====================================
@@ -10,10 +10,10 @@
  * additional information regarding copyright ownership.
  */
 
-/** All doc-comments marked as "MDN" are by Mozilla Contributors,
- *  distributed under the Creative Commons Attribution-ShareAlike license from
- *  https://developer.mozilla.org/en-US/docs/Web/Reference/API
- */
+
+
+
+
 package scala.scalajs.js
 
 import scala.language.implicitConversions
@@ -21,79 +21,79 @@ import scala.language.implicitConversions
 import scala.scalajs.js
 import scala.scalajs.js.annotation._
 
-/** Operations on JavaScript strings.
- *
- *  The methods with an equivalent signature in [[java.lang.String String]] but
- *  with a different meaning are prefixed by `js` in this trait.
- */
+
+
+
+
+
 trait JSStringOps extends js.Any {
 
-  /** Returns the index within the calling String object of the first occurrence
-   *  of the specified value, starting the search at fromIndex,
-   *
-   *  returns -1 if the value is not found.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
   @JSName("indexOf")
   def jsIndexOf(searchString: String, position: Int): Int
 
   @JSName("indexOf")
   def jsIndexOf(searchString: String): Int
 
-  /** Returns the index within the calling String object of the last occurrence
-   *  of the specified value, or -1 if not found. The calling string is searched
-   *  backward, starting at fromIndex.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
   @JSName("lastIndexOf")
   def jsLastIndexOf(searchString: String, position: Int): Int
 
   @JSName("lastIndexOf")
   def jsLastIndexOf(searchString: String): Int
 
-  /** Returns a number indicating whether a reference string comes before or
-   *  after or is the same as the given string in sort order. The new locales
-   *  and options arguments let applications specify the language whose sort
-   *  order should be used and customize the behavior of the function. In older
-   *  implementations, which ignore the locales and options arguments, the locale
-   *  and sort order used are entirely implementation dependent.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
+
+
   def localeCompare(that: String): Int
 
-  /** Used to retrieve the matches when matching a string against a regular
-   *  expression.
-   *
-   *  If the regular expression does not include the g flag, returns the same
-   *  result as regexp.exec(string). The returned Array has an extra input
-   *  property, which contains the original string that was parsed. In addition,
-   *  it has an index property, which represents the zero-based index of the
-   *  match in the string.
-   *
-   *  If the regular expression includes the g flag, the method returns an Array
-   *  containing all matches. If there were no matches, the method returns null.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
+
+
+
+
+
+
+
   def `match`(regexp: String): js.Array[String]
   def `match`(regexp: js.RegExp): js.Array[String]
 
-  /** Returns a new string with some or all matches of a pattern replaced by a
-   *  replacement.  The pattern can be a string or a RegExp, and the replacement
-   *  can be a string or a function to be called for each match.
-   *
-   *  This method does not change the String object it is called on. It simply
-   *  returns a new string.
-   *
-   *  To perform a global search and replace, either include the g switch in the
-   *  regular expression or if the first parameter is a string, include g in the
-   *  flags parameter.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
+
+
+
+
+
+
   @JSName("replace")
   def jsReplace(searchValue: String, replaceValue: String): String
 
@@ -106,55 +106,55 @@ trait JSStringOps extends js.Any {
   @JSName("replace")
   def jsReplace(searchValue: js.RegExp, replaceValue: js.Any): String
 
-  /** If successful, search returns the index of the regular expression inside
-   *  the string. Otherwise, it returns -1.
-   *
-   *  When you want to know whether a pattern is found in a string use search
-   *  (similar to the regular expression test method); for more information
-   *  (but slower execution) use match (similar to the regular expression exec
-   *  method).
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
+
+
+
   def search(regexp: String): Int
   def search(regexp: js.RegExp): Int
 
-  /** slice extracts the text from one string and returns a new string. Changes
-   *  to the text in one string do not affect the other string.
-   *
-   *  slice extracts up to but not including endSlice. string.slice(1,4) extracts
-   *  the second character through the fourth character (characters indexed 1, 2,
-   *  and 3).
-   *
-   *  As an example, string.slice(2,-1) extracts the third character through the
-   *  second to last character in the string.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
+
+
+
+
+
   @JSName("slice")
   def jsSlice(start: Int, end: Int): String
 
   @JSName("slice")
   def jsSlice(start: Int): String
 
-  /** Splits a String object into an array of strings by separating the string
-   *  into substrings.
-   *
-   *  When found, separator is removed from the string and the substrings are
-   *  returned in an array. If separator is omitted, the array contains one
-   *  element consisting of the entire string. If separator is an empty string,
-   *  string is converted to an array of characters.
-   *
-   *  If separator is a regular expression that contains capturing parentheses,
-   *  then each time separator is matched, the results (including any undefined
-   *  results) of the capturing parentheses are spliced into the output array.
-   *  However, not all browsers support this capability.
-   *
-   *  Note: When the string is empty, split returns an array containing one
-   *  empty string, rather than an empty array.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
   @JSName("split")
   def jsSplit(separator: String, limit: Int): js.Array[String]
 
@@ -167,47 +167,47 @@ trait JSStringOps extends js.Any {
   @JSName("split")
   def jsSplit(separator: js.RegExp): js.Array[String]
 
-  /** Returns a subset of a string between one index and another, or through
-   *  the end of the string.
-   *
-   *  MDN
-   */
+
+
+
+
+
   @JSName("substring")
   def jsSubstring(start: Int, end: Int): String
 
   @JSName("substring")
   def jsSubstring(start: Int): String
 
-  /** The toLocaleLowerCase method returns the value of the string converted to
-   *  lower case according to any locale-specific case mappings. toLocaleLowerCase
-   *  does not affect the value of the string itself. In most cases, this will
-   *  produce the same result as toLowerCase(), but for some locales, such as
-   *  Turkish, whose case mappings do not follow the default case mappings in Unicode,
-   *  there may be a different result.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
+
+
   def toLocaleLowerCase(): String
 
-  /** The toLocaleUpperCase method returns the value of the string converted to
-   *  upper case according to any locale-specific case mappings. toLocaleUpperCase
-   *  does not affect the value of the string itself. In most cases, this will
-   *  produce the same result as toUpperCase(), but for some locales, such as
-   *  Turkish, whose case mappings do not follow the default case mappings in Unicode,
-   *  there may be a different result.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
+
+
   def toLocaleUpperCase(): String
 
-  /** <span class="badge badge-ecma6" style="float: right;">ECMAScript 6</span>
-   *  Returns the Unicode Normalization Form of this string.
-   */
+
+
+
   def normalize(form: js.UnicodeNormalizationForm): String
 
-  /** <span class="badge badge-ecma6" style="float: right;">ECMAScript 6</span>
-   *  Returns the Unicode Normalization Form of this string, with the NFC form.
-   */
+
+
+
   def normalize(): String
 }
 


=====================================
library/src/main/scala/scala/scalajs/js/Map.scala
=====================================
@@ -15,16 +15,16 @@ package scala.scalajs.js
 import scala.scalajs.js
 import scala.scalajs.js.annotation.{JSGlobal, JSName}
 
-/** <span class="badge badge-ecma2015" style="float: right;">ECMAScript 2015</span>
- *
- *  The Map object holds key-value pairs and remembers the original insertion
- *  order of the keys. Any value (both objects and primitive values) may be used
- *  as either a key or a value.
- *
- *  @tparam K A type of key.
- *  @tparam V A type of value.
- *  @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map
- */
+
+
+
+
+
+
+
+
+
+
 @js.native
 @JSGlobal
 class Map[K, V]() extends js.Object with js.Iterable[js.Tuple2[K, V]] {
@@ -40,10 +40,10 @@ class Map[K, V]() extends js.Object with js.Iterable[js.Tuple2[K, V]] {
   def size: Int = js.native
 }
 
-/** Factory for [[js.Map]] instances. */
+
 object Map {
 
-  /** Returns a new empty map */
+
   @inline def empty[K, V]: js.Map[K, V] = new Map[K, V]()
 
   @js.native


=====================================
library/src/main/scala/scala/scalajs/js/Math.scala
=====================================
@@ -10,335 +10,335 @@
  * additional information regarding copyright ownership.
  */
 
-/** All doc-comments marked as "MDN" are by Mozilla Contributors,
- *  distributed under the Creative Commons Attribution-ShareAlike license from
- *  https://developer.mozilla.org/en-US/docs/Web/Reference/API
- */
+
+
+
+
 package scala.scalajs.js
 
 import scala.scalajs.js
 import scala.scalajs.js.annotation._
 
-/** Math is a built-in object that has properties and methods for mathematical
- *  constants and functions. Not a function object.
- *
- *  MDN
- */
+
+
+
+
+
 @js.native
 @JSGlobal
 object Math extends js.Object {
 
-  /** Euler's constant and the base of natural logarithms, approximately 2.718.
-   *
-   *  MDN
-   */
+
+
+
+
   val E: Double = js.native
 
-  /** Natural logarithm of 10, approximately 2.303.
-   *
-   *  MDN
-   */
+
+
+
+
   val LN10: Double = js.native
 
-  /** Natural logarithm of 2, approximately 0.693.
-   *
-   *  MDN
-   */
+
+
+
+
   val LN2: Double = js.native
 
-  /** Base 2 logarithm of E, approximately 1.443.
-   *
-   *  MDN
-   */
+
+
+
+
   val LOG2E: Double = js.native
 
-  /** Base 10 logarithm of E, approximately 0.434.
-   *
-   *  MSN
-   */
+
+
+
+
   val LOG10E: Double = js.native
 
-  /** Ratio of the circumference of a circle to its diameter, approximately 3.14159.
-   *
-   *  MDN
-   */
+
+
+
+
   val PI: Double = js.native
 
-  /** Square root of 1/2; equivalently, 1 over the square root of 2, approximately 0.707.
-   *
-   *  MDN
-   */
+
+
+
+
   val SQRT1_2: Double = js.native
 
-  /** Square root of 2, approximately 1.414.
-   *
-   *  MDN
-   */
+
+
+
+
   val SQRT2: Double = js.native
 
-  /** Returns the absolute value of a number.
-   *
-   *  Passing a non-numeric string or undefined/empty variable returns NaN.
-   *  Passing null returns 0.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
   def abs(x: Int): Int = js.native
 
-  /** Returns the absolute value of a number.
-   *
-   *  Passing a non-numeric string or undefined/empty variable returns NaN.
-   *  Passing null returns 0.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
   def abs(x: Double): Double = js.native
 
-  /** The Math.acos() function returns the arccosine (in radians) of a number.
-   *
-   *  The acos method returns a numeric value between 0 and pi radians for x
-   *  between -1 and 1. If the value of number is outside this range, it returns NaN.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
   def acos(x: Double): Double = js.native
 
-  /** The Math.asin() function returns the arcsine (in radians) of a number.
-   *
-   *  The asin method returns a numeric value between -pi/2 and pi/2 radians for x
-   *  between -1 and 1. If the value of number is outside this range, it returns NaN.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
   def asin(x: Double): Double = js.native
 
-  /** The Math.atan() function returns the arctangent (in radians) of a number.
-   *
-   *  The atan method returns a numeric value between -pi/2 and pi/2 radians.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
   def atan(x: Double): Double = js.native
 
-  /** The Math.atan2() function returns the arctangent of the quotient of its
-   *  arguments.
-   *
-   *  The atan2 method returns a numeric value between -pi and pi representing
-   *  the angle theta of an (x,y) point. This is the counterclockwise angle,
-   *  measured in radians, between the positive X axis, and the point (x,y).
-   *  Note that the arguments to this function pass the y-coordinate first and
-   *  the x-coordinate second.
-   *
-   *  atan2 is passed separate x and y arguments, and atan is passed the ratio
-   *  of those two arguments.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
+
+
+
+
+
+
+
   def atan2(y: Double, x: Double): Double = js.native
 
-  /** The Math.ceil() function returns the smallest integer greater than or
-   *  equal to a number.
-   *
-   *  MDN
-   */
+
+
+
+
+
   def ceil(x: Double): Double = js.native
 
-  /** <span class="badge badge-ecma2015" style="float: right;">ECMAScript 2015</span>
-   *
-   *  The Math.clz32() function returns the number of leading zero bits in the
-   *  32-bit binary representation of a number.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
   def clz32(x: Int): Int = js.native
 
-  /** The Math.cos() function returns the cosine of a number.
-   *
-   *  The cos method returns a numeric value between -1 and 1, which represents
-   *  the cosine of the angle.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
   def cos(x: Double): Double = js.native
 
-  /** The Math.exp() function returns E^x, where x is the argument, and E is
-   *  Euler's constant, the base of the natural logarithms.
-   *
-   *  MDN
-   */
+
+
+
+
+
   def exp(x: Double): Double = js.native
 
-  /** The Math.floor() function returns the largest integer less than or equal
-   *  to a number.
-   *
-   *  MDN
-   */
+
+
+
+
+
   def floor(x: Double): Double = js.native
 
-  /** The Math.log() function returns the natural logarithm (base E) of a number.
-   *
-   *  If the value of number is negative, the return value is always NaN.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
   def log(x: Double): Double = js.native
 
-  /** The Math.max() function returns the largest of zero or more numbers.
-   *
-   *  MDN
-   */
+
+
+
+
   def max(value1: Int, values: Int*): Int = js.native
 
-  /** The Math.max() function returns the largest of zero or more numbers.
-   *
-   *  If no arguments are given, the result is - Infinity.
-   *
-   *  If at least one of arguments cannot be converted to a number, the result is NaN.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
+
   def max(values: Double*): Double = js.native
 
-  /** The Math.min() function returns the smallest of zero or more numbers.
-   *
-   *  MDN
-   */
+
+
+
+
   def min(value1: Int, values: Int*): Int = js.native
 
-  /** The Math.min() function returns the smallest of zero or more numbers.
-   *
-   *  If no arguments are given, the result is Infinity.
-   *
-   *  If at least one of arguments cannot be converted to a number, the result is NaN.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
+
   def min(values: Double*): Double = js.native
 
-  /** The Math.pow() function returns the base to the exponent Power,  that is, base^^exponent.
-   *
-   *  MDN
-   */
+
+
+
+
   def pow(x: Double, y: Double): Double = js.native
 
-  /** The Math.random() function returns a floating-point, pseudo-random number in
-   *  the range [0, 1) that is, from 0 (inclusive) up to but not including 1
-   *  (exclusive), which you can then scale to your desired range.
-   *
-   *  The random number generator is seeded from the current time, as in Java.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
+
   def random(): Double = js.native
 
-  /** The Math.round() function returns the value of a number rounded to the
-   *  nearest integer.
-   *
-   *  If the fractional portion of number is .5 or greater, the argument is
-   *  rounded to the next higher integer. If the fractional portion of number
-   *  is less than .5, the argument is rounded to the next lower integer.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
+
+
   def round(x: Double): Double = js.native
 
-  /** The Math.sin() function returns the sine of a number.
-   *
-   *  The sin method returns a numeric value between -1 and 1, which represents
-   *  the sine of the angle given in radians.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
   def sin(x: Double): Double = js.native
 
-  /** The Math.sqrt() function returns the square root (x\sqrt{x}) of a number.
-   *
-   *  If the value of number is negative, sqrt returns NaN.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
   def sqrt(x: Double): Double = js.native
 
-  /** The Math.tan() function returns the tangent of a number.
-   *
-   *  The tan method returns a numeric value that represents the tangent of the angle.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
   def tan(x: Double): Double = js.native
 
-  /** <span class="badge badge-ecma6" style="float: right;">ECMAScript 6</span>
-   *  The Math.log1p() function returns the natural logarithm (base e) of
-   *  1 + a number
-   *
-   *  @return The natural logarithm (base e) of 1 plus the given number.
-   *         If the number is less than -1, NaN is returned.
-   *  MDN
-   */
+
+
+
+
+
+
+
+
   def log1p(x: Double): Double = js.native
 
-  /** <span class="badge badge-ecma6" style="float: right;">ECMAScript 6</span>
-   *  The Math.log10() function returns the base 10 logarithm of a number
-   *
-   *  @return The base 10 logarithm of the given number. If the number is
-   *         negative, NaN is returned.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
+
   def log10(x: Double): Double = js.native
 
-  /** <span class="badge badge-ecma6" style="float: right;">ECMAScript 6</span>
-   *  The Math.sinh() function returns the hyperbolic sine of a number
-   *
-   *  @return The hyperbolic sine of the given number
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
   def sinh(x: Double): Double = js.native
 
-  /** <span class="badge badge-ecma6" style="float: right;">ECMAScript 6</span>
-   *  The Math.cosh() function returns the hyperbolic cosine of a number
-   *
-   *  @return The hyperbolic cosine of the given number
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
   def cosh(x: Double): Double = js.native
 
-  /** <span class="badge badge-ecma6" style="float: right;">ECMAScript 6</span>
-   *  The Math.tanh() function returns the hyperbolic tangent of a number
-   *
-   *  @return The hyperbolic tangent of the given number
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
   def tanh(x: Double): Double = js.native
 
-  /** <span class="badge badge-ecma6" style="float: right;">ECMAScript 6</span>
-   *  The Math.cbrt() function returns the cube root of a number
-   *
-   *  @return The cube root of the given number.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
   def cbrt(x: Double): Double = js.native
 
-  /** <span class="badge badge-ecma6" style="float: right;">ECMAScript 6</span>
-   *  The Math.hypot() function returns the square root of the sum of squares
-   *  of its arguments
-   *
-   *  @return The square root of the sum of squares of the given arguments.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
+
   def hypot(x: Double*): Double = js.native
 
-  /** <span class="badge badge-ecma6" style="float: right;">ECMAScript 6</span>
-   *  The Math.expm1() function returns e^x - 1, where x is the argument,
-   *  and e the base of the natural logarithms.
-   *
-   *  @return A number representing e^x - 1, where e is Euler's number and
-   *         x is the argument.
-   */
+
+
+
+
+
+
+
   def expm1(x: Double): Double = js.native
 }


=====================================
library/src/main/scala/scala/scalajs/js/Object.scala
=====================================
@@ -10,16 +10,16 @@
  * additional information regarding copyright ownership.
  */
 
-/** All doc-comments marked as "MDN" are by Mozilla Contributors,
- *  distributed under the Creative Commons Attribution-ShareAlike license from
- *  https://developer.mozilla.org/en-US/docs/Web/Reference/API
- */
+
+
+
+
 package scala.scalajs.js
 
 import scala.scalajs.js
 import scala.scalajs.js.annotation._
 
-/** Base class of all JavaScript objects. */
+
 @js.native
 @JSGlobal
 class Object extends js.Any {
@@ -28,269 +28,269 @@ class Object extends js.Any {
   def toLocaleString(): String = js.native
   def valueOf(): scala.Any = js.native
 
-  /** Tests whether this object has the specified property as a direct property.
-   *
-   *  Unlike [[js.Any.ObjectCompanionOps.hasProperty js.Object.hasProperty]],
-   *  this method does not check down the object's prototype chain.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
   def hasOwnProperty(v: String): Boolean = js.native
 
-  /** Tests whether this object is in the prototype chain of another object. */
+
   def isPrototypeOf(v: Object): Boolean = js.native
 
-  /** Tests whether the specified property in an object can be enumerated by a
-   *  call to [[js.Any.ObjectCompanionOps.properties js.Object.properties]],
-   *  with the exception of properties inherited through the prototype chain.
-   *
-   *  If the object does not have the specified property, this method returns
-   *  false.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
+
+
   def propertyIsEnumerable(v: String): Boolean = js.native
 }
 
-/** The top-level `Object` JavaScript object. */
+
 @js.native
 @JSGlobal
 object Object extends js.Object {
   def apply(): js.Object = js.native
   def apply(value: scala.Any): js.Object = js.native
 
-  /** <span class="badge badge-ecma6" style="float: right;">ECMAScript 6</span>
-   *  The `Object.assign()` method is used to copy the values of all enumerable
-   *  own properties from one or more source objects to a target object. It will
-   *  return the target object.
-   *
-   *  Properties in the target object will be overwritten by properties in the
-   *  sources if they have the same key. Later sources' properties will
-   *  similarly overwrite earlier ones.
-   *
-   *  The `Object.assign()` method only copies enumerable and own properties from
-   *  a source object to a target object. It uses `Get` on the source and `Set`
-   *  on the target, so it will invoke getters and setters. Therefore it
-   *  assigns properties versus just copying or defining new properties. This may
-   *  make it unsuitable for merging new properties into a prototype if the merge
-   *  sources contain getters. For copying property definitions, including their
-   *  enumerability, into prototypes `Object.getOwnPropertyDescriptor()` and
-   *  `Object.defineProperty()` should be used instead.
-   *
-   *  Both `String` and `Symbol` properties are copied.
-   *
-   *  In case of an error, for example if a property is non-writable, a
-   *  `TypeError` will be raised, and the target object can be changed if any
-   *  properties are added before error is raised.
-   *
-   *  Note that `Object.assign()` does not throw on null or undefined source
-   *  values.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
   def assign(t: js.Object, s: js.Object*): js.Object = js.native
 
-  /** The Object.getPrototypeOf() method returns the prototype (i.e. the
-   *  internal `Prototype`) of the specified object.
-   *
-   *  MDN
-   */
+
+
+
+
+
   def getPrototypeOf(o: js.Object): js.Object = js.native
 
-  /** The Object.getOwnPropertyDescriptor() method returns a property descriptor
-   *  for an own property (that is, one directly present on an object, not
-   *  present by dint of being along an object's prototype chain) of a given object.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
   def getOwnPropertyDescriptor(o: js.Object,
       p: String): js.PropertyDescriptor = js.native
 
-  /** Object.getOwnPropertyNames returns an array whose elements are strings
-   *  corresponding to the enumerable and non-enumerable properties found
-   *  directly upon obj. The ordering of the enumerable properties in the array
-   *  is consistent with the ordering exposed by a for...in loop (or by Object.keys)
-   *  over the properties of the object. The ordering of the non-enumerable
-   *  properties in the array, and among the enumerable properties, is not defined.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
+
+
   def getOwnPropertyNames(o: js.Object): js.Array[String] = js.native
 
-  /** <span class="badge badge-ecma2015" style="float: right;">ECMAScript 2015</span>
-   *
-   *  The Object.getOwnPropertySymbols() method returns an array of all symbol
-   *  properties found directly upon a given object.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
   def getOwnPropertySymbols(o: js.Object): js.Array[js.Symbol] = js.native
 
-  /** The Object.create() method creates a new object with the specified
-   *  prototype object and properties.
-   *
-   *  MDN
-   */
+
+
+
+
+
   def create(o: js.Object, properties: js.Any): js.Object = js.native
   def create(o: js.Object): js.Object = native
 
-  /** The Object.defineProperty() method defines a new property directly on an
-   *  object, or modifies an existing property on an object, and returns the
-   *  object.
-   *
-   *  This method allows precise addition to or modification of a property on an
-   *  object. Normal property addition through assignment creates properties
-   *  which show up during property enumeration (for...in loop or Object.keys method),
-   *  whose values may be changed, and which may be deleted. This method allows
-   *  these extra details to be changed from their defaults.
-   *
-   *  Property descriptors present in objects come in two main flavors: data
-   *  descriptors and accessor descriptors. A data descriptor is a property
-   *  that has a value, which may or may not be writable. An accessor descriptor
-   *  is a property described by a getter-setter pair of functions. A descriptor
-   *  must be one of these two flavors; it cannot be both.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
   def defineProperty(o: js.Object, p: String,
       attributes: js.PropertyDescriptor): o.type = js.native
 
-  /** The Object.defineProperties() method defines new or modifies existing
-   *  properties directly on an object, returning the object.
-   *
-   *  MDN
-   */
+
+
+
+
+
   def defineProperties(o: js.Object, properties: js.Any): o.type = js.native
 
-  /** The Object.seal() method seals an object, preventing new properties from
-   *  being added to it and marking all existing properties as non-configurable.
-   *  Values of present properties can still be changed as long as they are
-   *  writable.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
   def seal(o: js.Object): o.type = js.native
 
-  /** The Object.freeze() method freezes an object: that is, prevents new properties
-   *  from being added to it; prevents existing properties from being removed;
-   *  and prevents existing properties, or their enumerability, configurability,
-   *  or writability, from being changed. In essence the object is made effectively
-   *  immutable. The method returns the object being frozen.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
+
   def freeze(o: js.Object): o.type = js.native
 
-  /** The Object.preventExtensions() method prevents new properties from ever
-   *  being added to an object (i.e. prevents future extensions to the object).
-   *
-   *  An object is extensible if new properties can be added to it.  preventExtensions
-   *  marks an object as no longer extensible, so that it will never have
-   *  properties beyond the ones it had at the time it was marked as non-extensible.
-   *  Note that the properties of a non-extensible object, in general, may still be
-   *  deleted. Attempting to add new properties to a non-extensible object will
-   *  fail, either silently or by throwing a TypeError (most commonly, but not
-   *  exclusively, when in strict mode).
-   *
-   *  Object.preventExtensions only prevents addition of own properties. Properties
-   *  can still be added to the object prototype. However, calling Object.preventExtensions
-   *  on an object will also prevent extensions on its __proto__ property.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
   def preventExtensions(o: js.Object): o.type = js.native
 
-  /** <span class="badge badge-ecma2015" style="float: right;">ECMAScript 2015</span>
-   *
-   *  Object.is() determines whether two values are the same value. Two values
-   *  are the same if one of the following holds:
-   *
-   *  <ul>
-   *    <li>both undefined
-   *    <li>both null
-   *    <li>both true or both false
-   *    <li>both strings of the same length with the same characters in the same
-   *        order
-   *    <li>both the same object (means both object have same reference)
-   *    <li>both numbers and
-   *      <ul>
-   *        <li>both +0
-   *        <li>both -0
-   *        <li>both NaN
-   *        <li>or both non-zero and both not NaN and both have the same value
-   *      </ul>
-   *    </li>
-   *  </ul>
-   *
-   *  This is not the same as being equal according to JavaScript's `===`
-   *  operator (exposed as `js.special.strictEquals`` in Scala.js). The `===`
-   *  operator treats the number values `-0` and `+0` as equal and treats `NaN`
-   *  as not equal to `NaN`.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
   def is(value1: scala.Any, value2: scala.Any): Boolean = js.native
 
-  /** Returns true if the object is sealed, otherwise false. An object is sealed
-   *  if it is not extensible and if all its properties are non-configurable and
-   *  therefore not removable (but not necessarily non-writable).
-   *
-   *  MDN
-   */
+
+
+
+
+
+
   def isSealed(o: js.Object): Boolean = js.native
 
-  /** The Object.isFrozen() determines if an object is frozen.
-   *
-   *  An object is frozen if and only if it is not extensible, all its properties
-   *  are non-configurable, and all its data properties (that is, properties which
-   *  are not accessor properties with getter or setter components) are non-writable.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
+
   def isFrozen(o: js.Object): Boolean = js.native
 
-  /** Determines if extending of an object is allowed
-   *
-   *  Objects are extensible by default: they can have new properties added to
-   *  them, and (in engines that support __proto__  their __proto__ property)
-   *  can be modified. An object can be marked as non-extensible using
-   *  Object.preventExtensions, Object.seal, or Object.freeze
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
+
+
   def isExtensible(o: js.Object): Boolean = js.native
 
-  /** The Object.keys() method returns an array of a given object's own enumerable
-   *  properties, in the same order as that provided by a for...in loop (the
-   *  difference being that a for-in loop enumerates properties in the prototype
-   *  chain as well).
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
   def keys(o: js.Object): js.Array[String] = js.native
 
-  /** <span class="badge badge-ecma2017" style="float: right;">ECMAScript 2017</span>
-   *
-   *  The Object.entries() method returns an array of a given object's own
-   *  enumerable string-keyed property [key, value] pairs, in the same order as
-   *  that provided by a for...in loop (the difference being that a for-in loop
-   *  enumerates properties in the prototype chain as well).
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
+
+
   def entries(o: js.Object): js.Array[js.Tuple2[String, scala.Any]] = js.native
 
-  /** <span class="badge badge-ecma2017" style="float: right;">ECMAScript 2017</span> */
+
   def entries[A](
       dict: js.Dictionary[A]): js.Array[js.Tuple2[String, A]] = js.native
 
-  /** <span class="badge badge-ecma2020" style="float: right;">ECMAScript 2020</span>
-   *
-   *  The Object.fromEntries() method transforms a list of key-value pairs into
-   *  an object.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
   def fromEntries[A](
       iterable: js.Iterable[js.Tuple2[String, A]]): js.Dictionary[A] = js.native
 }


=====================================
library/src/main/scala/scala/scalajs/js/RegExp.scala
=====================================
@@ -10,97 +10,97 @@
  * additional information regarding copyright ownership.
  */
 
-/** All doc-comments marked as "MDN" are by Mozilla Contributors,
- *  distributed under the Creative Commons Attribution-ShareAlike license from
- *  https://developer.mozilla.org/en-US/docs/Web/Reference/API
- */
+
+
+
+
 package scala.scalajs.js
 
 import scala.scalajs.js
 import scala.scalajs.js.annotation._
 
-/** The RegExp constructor creates a regular expression object for matching
- *  text with a pattern.
- *
- *  MDN
- */
+
+
+
+
+
 @js.native
 @JSGlobal
 class RegExp(pattern: String, flags: String = "") extends js.Object {
 
-  /** Creates a new RegExp with the same pattern and flags as the given one. */
+
   def this(pattern: js.RegExp) = this("", "")
 
-  /** The source property returns a String containing the text of the pattern,
-   *  excluding the forward slashes. It is a read-only property of an individual
-   *  regular expression instance. source does not contain any flags (like "g",
-   *  "i" or "m") of the regular expression.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
   val source: String = js.native
 
-  /** The value of global is a Boolean and true if the "g" flag was used;
-   *  otherwise, false. The "g" flag indicates that the regular expression
-   *  should be tested against all possible matches in a string.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
   val global: Boolean = js.native
 
-  /** The value of ignoreCase is a Boolean and true if the "i" flag was used;
-   *  otherwise, false. The "i" flag indicates that case should be ignored while
-   *  attempting a match in a string.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
   val ignoreCase: Boolean = js.native
 
-  /** The value of multiline is a Boolean and is true if the "m" flag was used;
-   *  otherwise, false. The "m" flag indicates that a multiline input string
-   *  should be treated as multiple lines. For example, if "m" is used, "^" and
-   *  "$" change from matching at only the start or end of the entire string to
-   *  the start or end of any line within the string.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
+
   val multiline: Boolean = js.native
 
-  /** The lastIndex is a read/write integer property of regular expressions that
-   *  specifies the index at which to start the next match.
-   *
-   *  MDN
-   */
+
+
+
+
+
   var lastIndex: Int = js.native
 
-  /** The exec() method executes a search for a match in a specified string.
-   *  Returns a result array, or null.
-   *
-   *  If you are executing a match simply to find true or false, use the
-   *  RegExp.test() method or the String.search() method.
-   *
-   *  If the match succeeds, the exec method returns an array and updates properties
-   *  of the regular expression object. The returned array has the matched text
-   *  as the first item, and then one item for each capturing parenthesis that
-   *  matched containing the text that was captured.
-   *
-   *  If the match fails, the exec method returns null.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
   def exec(string: String): js.RegExp.ExecResult = js.native
 
-  /** The test() method executes a search for a match between a regular expression
-   *  and a specified string. Returns true or false.
-   *
-   *  You can use test() whenever want to know whether a pattern is found in a
-   *  string (similar to the String.search method); for more information (but
-   *  slower execution) use the exec method (similar to the String.match method).
-   *  As with exec (or in combination with it), test called multiple times on the
-   *  same global regular expression instance will advance past the previous match.
-   *
-   *  MDN
-   */
+
+
+
+
+
+
+
+
+
+
+
   def test(string: String): Boolean = js.native
 }
 
@@ -113,7 +113,7 @@ object RegExp extends js.Object {
     var index: Int
     var input: String
 
-    /** <span class="badge badge-ecma2018" style="float: right;">ECMAScript 2018</span> */
+
     var groups: js.UndefOr[js.Dictionary[js.UndefOr[String]]]
   }
 }


=====================================
library/src/main/scala/scala/scalajs/js/Set.scala
=====================================
@@ -15,14 +15,14 @@ package scala.scalajs.js
 import scala.scalajs.js
 import scala.scalajs.js.annotation.{JSGlobal, JSName}
 
-/** <span class="badge badge-ecma2015" style="float: right;">ECMAScript 2015</span>
- *
- *  The Set object lets you store unique values of any type, whether primitive
- *  values or object references.
- *
- *  @tparam T A type of element.
- *  @see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Set
- */
+
+
+
+
+
+
+
+
 @js.native
 @JSGlobal
 class Set[T]() extends js.Object with js.Iterable[T] {
@@ -36,10 +36,10 @@ class Set[T]() extends js.Object with js.Iterable[T] {
   def size: Int = js.native
 }
 
-/** Factory for [[js.Set]] instances. */
+
 object Set {
 
-  /** Returns a new empty map */
+
   @inline def empty[V]: js.Set[V] = new Set[V]()
 
   @js.native


=====================================
library/src/main/scala/scala/scalajs/js/ThisFunction.scala
=====================================
@@ -10,20 +10,20 @@
  * additional information regarding copyright ownership.
  */
 
-/** All doc-comments marked as "MDN" are by Mozilla Contributors,
- *  distributed under the Creative Commons Attribution-ShareAlike license from
- *  https://developer.mozilla.org/en-US/docs/Web/Reference/API
- */
+
+
+
+
 package scala.scalajs.js
 
 import scala.language.implicitConversions
 
 import scala.scalajs.js
 
-/** A JavaScript function where `this` is considered as a first parameter.
- *
- *  @see [[http://www.scala-js.org/doc/calling-javascript.html Calling JavaScript from Scala.js]]
- */
+
+
+
+
 trait ThisFunction extends js.Function
 
 object ThisFunction {


=====================================
library/src/main/scala/scala/scalajs/js/Tuple.scala
=====================================
@@ -10,10 +10,10 @@
  * additional information regarding copyright ownership.
  */
 
-/** All doc-comments marked as "MDN" are by Mozilla Contributors,
- *  distributed under the Creative Commons Attribution-ShareAlike license from
- *  https://developer.mozilla.org/en-US/docs/Web/Reference/API
- */
+
+
+
+
 package scala.scalajs.js
 
 import scala.language.implicitConversions
@@ -21,20 +21,20 @@ import scala.language.implicitConversions
 import scala.scalajs.js
 import scala.scalajs.js.annotation._
 
-/** A tuple "view" of 2 elements of a JavaScript [[js.Array]].
- *
- *  Supports implicit conversions to and from [[scala.Tuple2]].
- *
- *  To use it, cast your array into a [[js.Tuple2]] using
- *  {{{
- *  val array = js.Array[Any](42, "foobar")
- *  val tuple2 = array.asInstanceOf[js.Tuple2[Int, String]]
- *  }}}
- *  or convert a Scala tuple
- *  {{{
- *  val obj: js.Tuple2[Int, String] = (42, "foobar")
- *  }}}
- */
+
+
+
+
+
+
+
+
+
+
+
+
+
+
 sealed trait Tuple2[+T1, +T2] extends js.Object {
   @JSName("0") val _1: T1
   @JSName("1") val _2: T2
@@ -58,10 +58,10 @@ object Tuple2 {
     (t._1, t._2)
 }
 
-/** A tuple "view" of 3 elements of a JavaScript [[js.Array]].
- *
- *  @see [[js.Tuple2]]
- */
+
+
+
+
 sealed trait Tuple3[+T1, +T2, +T3] extends js.Object {
   @JSName("0") val _1: T1
   @JSName("1") val _2: T2


=====================================
library/src/main/scala/scala/scalajs/js/UnicodeNormalizationForm.scala
=====================================
@@ -10,33 +10,33 @@
  * additional information regarding copyright ownership.
  */
 
-/* All doc-comments marked as "MDN" are by Mozilla Contributors,
- * distributed under the Creative Commons Attribution-ShareAlike license from
- * https://developer.mozilla.org/en-US/docs/Web/Reference/API
- */
+
+
+
+
 
 package scala.scalajs.js
 
 import scala.scalajs.js
 
-/** A Unicode Normalization Form.
- *
- *  @see [[JSStringOps js.JSStringOps.normalize]]
- *  @see [[http://www.unicode.org/reports/tr15/ Unicode Normalization Forms]]
- */
+
+
+
+
+
 sealed trait UnicodeNormalizationForm extends js.Any
 
 object UnicodeNormalizationForm {
 
-  /** Normalization Form Canonical Composition. */
+
   final val NFC = "NFC".asInstanceOf[js.UnicodeNormalizationForm]
 
-  /** Normalization Form Canonical Decomposition. */
+
   final val NFD = "NFD".asInstanceOf[js.UnicodeNormalizationForm]
 
-  /** Normalization Form Compatibility Composition. */
+
   final val NFKC = "NFKC".asInstanceOf[js.UnicodeNormalizationForm]
 
-  /** Normalization Form Compatibility Decomposition. */
+
   final val NFKD = "NFKD".asInstanceOf[js.UnicodeNormalizationForm]
 }


=====================================
library/src/main/scala/scala/scalajs/js/WeakRef.scala
=====================================
@@ -15,20 +15,20 @@ package scala.scalajs.js
 import scala.scalajs.js
 import scala.scalajs.js.annotation.JSGlobal
 
-/** <span class="badge badge-ecma2021" style="float: right;">ECMAScript 2021</span>
- *
- *  A WeakRef object lets you hold a weak reference to another object, without preventing
- *  that object from getting garbage-collected.
- *
- *  MDN
- *
- *  @param targetObject An object whose weak reference contained by an instance of WeakRef.
- *  @tparam T unconstrained, but the constructor will throw a TypeError if targetObject is not an Object.
- */
+
+
+
+
+
+
+
+
+
+
 @js.native
 @JSGlobal
 class WeakRef[+T](targetObject: T) extends js.Object {
 
-  /** The target object of the WeakRef, or undefined if the object has been garbage-collected. */
+
   def deref[S >: T](): js.UndefOr[S] = js.native
 }


=====================================
library/src/main/scala/scala/scalajs/js/special/package.scala
=====================================
@@ -15,18 +15,18 @@ package scala.scalajs.js
 import scala.scalajs.js
 import scala.scalajs.js.annotation._
 
-/** Contains special primitives of interoperability with JavaScript which are
- *  of limited importance or rare usefulness.
- *
- *  In theory, all of the members of this package could equally well be part of
- *  the `scala.scalajs.js` package. They are sligthly "hidden" in this
- *  `special` package so that they are not used on a daily basis, but only when
- *  absolutely necessary.
- *
- *  Everything in this package is a "I-know-what-I-am-doing" API. Notably, no
- *  attempt is made to guide the user with types that are not hard
- *  requirements.
- */
+
+
+
+
+
+
+
+
+
+
+
+
 package object special {
 
   @js.native
@@ -35,14 +35,14 @@ package object special {
     def update(prop: scala.Any, value: scala.Any): Unit = js.native
   }
 
-  /** Constructs a new object with the specified properties.
-   *
-   *  This method is the exact equivalent of an object initializer in
-   *  JavaScript (aka an object literal).
-   *
-   *  In most cases, you should use a new anonymous JS class if you have a
-   *  typed API, or [[js.Dynamic.literal]] in a dynamically typed setting.
-   */
+
+
+
+
+
+
+
+
   // intrinsic
   def objectLiteral(properties: (scala.Any, scala.Any)*): js.Object = {
     val result = new js.Object().asInstanceOf[FullyDynamicProps]
@@ -51,183 +51,183 @@ package object special {
     result
   }
 
-  /** Tests whether two values are equal according to ECMAScript's
-   *  *Strict Equality Comparison* (`===`).
-   *
-   *  This is equivalent to `x eq y`, except that:
-   *
-   *  - `strictEquals(NaN, NaN)` is `false` whereas `NaN eq NaN` is `true`
-   *  - `strictEquals(+0.0, -0.0)` is `true` whereas `+0.0 eq -0.0` is `false`
-   *
-   *  @return
-   *    the result of `x === y` where `===` is the ECMAScript operator.
-   */
+
+
+
+
+
+
+
+
+
+
+
   def strictEquals(x: scala.Any, y: scala.Any): Boolean =
     throw new java.lang.Error("stub")
 
-  /** Tests whether an object has a given enumerable property in its prototype
-   *  chain.
-   *
-   *  This method is the exact equivalent of `p in o` in JavaScript.
-   *
-   *  The recommended surface syntax to perform `p in o` is to use
-   *  `js.Object.hasProperty(o, p)`.
-   */
+
+
+
+
+
+
+
+
   def in(p: scala.Any, o: scala.Any): Boolean =
     throw new java.lang.Error("stub")
 
-  /** Dynamically tests whether a value is an instance of a JavaScript class.
-   *
-   *  This method is the exact equivalent of `x instanceof clazz` in
-   *  JavaScript.
-   *
-   *  Using this method is only necessary when `clazz` is only known at
-   *  run-time. In most cases, you should use
-   *  {{{
-   *  x.isInstanceOf[C]
-   *  }}}
-   *  instead, where `C` is the statically defined class corresponding to
-   *  `clazz`. In particular, the following identity holds for all `x` and `C`:
-   *  {{{
-   *  x.isInstanceOf[C] == js.special.instanceof(x, js.constructorOf[C])
-   *  }}}
-   */
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
   def instanceof(x: scala.Any, clazz: scala.Any): Boolean =
     throw new java.lang.Error("stub")
 
-  /** Deletes a property of an object.
-   *
-   *  This method is the exact equivalent of the `delete obj[key]` statement
-   *  of JavaScript (and by extension of `delete obj.key` if `key` is a
-   *  constant string).
-   *
-   *  The property must be configurable. Otherwise, this method throws a
-   *  [[js.TypeError]].
-   *
-   *  Rather than using this method, it is often preferable to use a
-   *  [[js.Dictionary]] and its `-=` method.
-   */
+
+
+
+
+
+
+
+
+
+
+
+
   def delete(obj: scala.Any, key: scala.Any): Unit =
     throw new java.lang.Error("stub")
 
-  /** Enumerates the keys of an object.
-   *
-   *  This method is the exact equivalent of the `for (a in o) {}` statement of
-   *  JavaScript. A call of the form
-   *  {{{
-   *  forin(obj)(f)
-   *  }}}
-   *  corresponds to the JavaScript statement
-   *  {{{
-   *  const objTemp = obj;
-   *  const fTemp = f;
-   *  for (const x in objTemp) {
-   *    fTemp(x)
-   *  }
-   *  }}}
-   *
-   *  `for..in` loops exhibit performance cliffs in most JavaScript engines,
-   *  which means their performance is very dependent on their surroundings.
-   *  Therefore, it is recommended to avoid this method and use
-   *  [[js.Any.ObjectCompanionOps.properties js.Object.properties]] instead, if
-   *  possible.
-   */
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
   def forin(obj: scala.Any)(f: js.Function1[scala.Any, scala.Any]): Unit =
     throw new java.lang.Error("stub")
 
-  /** Throw an arbitrary value, which will be caught as is by a JavaScript
-   *  `try..catch` statement.
-   *
-   *  Usually, a Scala `throw` expression is more appropriate. Even if you
-   *  want to throw a JS error type such as [[js.Error]], it is more idiomatic
-   *  to wrap it in a [[js.JavaScriptException]] and throw that one.
-   *
-   *  However, if you hold a value of an arbitrary type, which was caught by a
-   *  JavaScript `try..catch` statement (sometimes indirectly, such as with
-   *  [[js.Promise]]s), it is appropriate to use `js.special.throw` to rethrow
-   *  it.
-   */
+
+
+
+
+
+
+
+
+
+
+
+
   def `throw`(ex: scala.Any): Nothing =
     throw new java.lang.Error("stub")
 
-  /** Performs a JavaScript `try..catch`, which can catch any type of value.
-   *
-   *  Usually, a Scala `try..catch` expression catching [[Throwable]] is more
-   *  appropriate. Values that are not instances of [[Throwable]], such as JS
-   *  error values, are then wrapped in a [[js.JavaScriptException]].
-   *
-   *  However, if you need to get the originally thrown value, for example to
-   *  pass it on to a JavaScript error handler, it is appropriate to use
-   *  `js.special.tryCatch`.
-   */
+
+
+
+
+
+
+
+
+
+
   def tryCatch[A](body: js.Function0[A])(handler: js.Function1[scala.Any, A]): A =
     throw new java.lang.Error("stub")
 
-  /** Wrap any value so that it can be assigned to a [[Throwable]].
-   *
-   *  Instances of [[Throwable]] are returned as is. Other values are wrapped
-   *  in a [[js.JavaScriptException]].
-   */
+
+
+
+
+
   def wrapAsThrowable(ex: scala.Any): Throwable =
     throw new java.lang.Error("stub")
 
-  /** Unwrap an exception value wrapped with `wrapAsThrowable`.
-   *
-   *  Instances of [[js.JavaScriptException]] are unwrapped to return the
-   *  underlying value. Other values are returned as is.
-   *
-   *  @throws java.lang.NullPointerException
-   *    If `th` is `null`. Subject to Undefined Behaviors.
-   */
+
+
+
+
+
+
+
+
   def unwrapFromThrowable(th: Throwable): scala.Any =
     throw new java.lang.Error("stub")
 
-  /** The value of the JavaScript `this` at the top-level of the generated
-   *  file.
-   *
-   *  This returns the value that would be obtained by writing `this` at the
-   *  top-level of the JavaScript file generated by Scala.js. In scripts, this
-   *  is equivalent to the *global object*, but in other environments, it is
-   *  not necessarily the case. For example, in CommonJS modules on Node.js,
-   *  `this` is the object representing the `exports` of the current module,
-   *  and it is `undefined` in ECMAScript modules.
-   *
-   *  Using this value should be rare, and mostly limited to writing code
-   *  detecting what the global object is. For example, a typical detection
-   *  code--in case we do not need to worry of ES modules--looks like:
-   *  {{{
-   *  val globalObject = {
-   *    import js.Dynamic.{global => g}
-   *    if (js.typeOf(g.global) != "undefined" && (g.global.Object eq g.Object)) {
-   *      // Node.js environment detected
-   *      g.global
-   *    } else {
-   *      // In all other well-known environment, we can use the global `this`
-   *      js.special.fileLevelThis
-   *    }
-   *  }
-   *  }}}
-   *  Note that the above code is not comprehensive, as there can be JavaScript
-   *  environments where the global object cannot be fetched neither through
-   *  `global` nor `this`. If your code needs to run in such an environment, it
-   *  is up to you to use an appropriate detection procedure.
-   */
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
   @inline
   def fileLevelThis: scala.Any =
     js.Dynamic.global.`this`
 
-  /** Exact equivalent of the `debugger` keyword of JavaScript.
-   *
-   *  `debugger()` invokes any available debugging functionality.
-   *  If no debugging functionality is available, this method has no effect.
-   *
-   *  MDN
-   *
-   *  Browser support:
-   *  - Has no effect in Rhino nor, apparently, in Firefox
-   *  - In Chrome, it has no effect unless the developer tools are opened
-   *    beforehand.
-   */
+
+
+
+
+
+
+
+
+
+
+
+
   def debugger(): Unit =
     throw new java.lang.Error("stub")
 



View it on GitLab: https://salsa.debian.org/java-team/scala-js/-/compare/5f3a160609ca92823ae6336d80892bd4089301d1...658fecf9a788463f3a16b72280d51cb24678f778

-- 
View it on GitLab: https://salsa.debian.org/java-team/scala-js/-/compare/5f3a160609ca92823ae6336d80892bd4089301d1...658fecf9a788463f3a16b72280d51cb24678f778
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-java-commits/attachments/20261029/9684532d/attachment.htm>


More information about the pkg-java-commits mailing list