@@ -1853,22 +1853,20 @@ The |funcType| of this builtin is `(func (param i32) (result externref))`.
1853
1853
<div algorithm="js-string-fromCharCode">
1854
1854
When this builtin is invoked with parameter |v|, the following steps must be run:
1855
1855
1856
- 1. Return [=!=] [$Call$] ([=String.fromCharCode=] , undefined, [=ToJSValue=] (|v|)).
1856
+ 1. Return [=!=] [$Call$] ([=String.fromCharCode=] , undefined, « [=ToJSValue=] (|v|) » ).
1857
1857
1858
1858
</div>
1859
1859
1860
1860
<h4 id="js-string-fromCodePoint">fromCodePoint</h4>
1861
1861
1862
- TODO
1863
-
1864
1862
The |funcType| of this builtin is `(func (param i32) (result externref))`.
1865
1863
1866
1864
<div algorithm="js-string-fromCodePoint">
1867
1865
When this builtin is invoked with parameter |v|, the following steps must be run:
1868
1866
1869
1867
1. If |v| > 0x10ffff
1870
1868
1. Throw a {{RuntimeError}} exception. TODO: this needs to not be catchable, like a trap.
1871
- 1. Return [=!=] [$Call$] ([=String.fromCodePoint=] , undefined, [=ToJSValue=] (|v|)).
1869
+ 1. Return [=!=] [$Call$] ([=String.fromCodePoint=] , undefined, « [=ToJSValue=] (|v|) » ).
1872
1870
1873
1871
</div>
1874
1872
@@ -1883,7 +1881,7 @@ When this builtin is invoked with parameters |string| and |index|, the following
1883
1881
1. Let |length| be the [=string/length=] of |string|.
1884
1882
1. If |index| >= |length|
1885
1883
1. Throw a {{RuntimeError}} exception. TODO: this needs to not be catchable, like a trap.
1886
- 1. Return [=!=] [$Call$] ([=String.prototype.charCodeAt=] , |string|, [=ToJSValue=] (|index|)).
1884
+ 1. Return [=!=] [$Call$] ([=String.prototype.charCodeAt=] , |string|, « [=ToJSValue=] (|index|) » ).
1887
1885
1888
1886
</div>
1889
1887
@@ -1898,7 +1896,7 @@ When this builtin is invoked with parameters |string| and |index|, the following
1898
1896
1. Let |length| be the [=string/length=] of |string|.
1899
1897
1. If |index| >= |length|
1900
1898
1. Throw a {{RuntimeError}} exception. TODO: this needs to not be catchable, like a trap.
1901
- 1. Return [=!=] [$Call$] ([=String.prototype.codePointAt=] , |string|, [=ToJSValue=] (|index|)).
1899
+ 1. Return [=!=] [$Call$] ([=String.prototype.codePointAt=] , |string|, « [=ToJSValue=] (|index|) » ).
1902
1900
1903
1901
</div>
1904
1902
@@ -1923,7 +1921,7 @@ When this builtin is invoked with parameters |first| and |second|, the following
1923
1921
1924
1922
1. Let |first| be [=?=] [$UnwrapString$] (|first|).
1925
1923
1. Let |second| be [=?=] [$UnwrapString$] (|second|).
1926
- 1. Return [=!=] [$Call$] ([=String.prototype.concat=] , |first|, « |second| » ).
1924
+ 1. Return [=!=] [$Call$] ([=String.prototype.concat=] , |first|, « |second| » ).
1927
1925
1928
1926
</div>
1929
1927
@@ -1938,7 +1936,7 @@ When this builtin is invoked with parameters |string|, |start|, and |end|, the f
1938
1936
1. Let |length| be the [=string/length=] of |string|.
1939
1937
1. If |start| > |end| or |start| > |length|
1940
1938
1. Return the empty string.
1941
- 1. Return [=!=] [$Call$] ([=String.prototype.substring=] , |string|, « [=ToJSValue=] (|start|), [=ToJSValue=] (|end|) » ).
1939
+ 1. Return [=!=] [$Call$] ([=String.prototype.substring=] , |string|, « [=ToJSValue=] (|start|), [=ToJSValue=] (|end|) » ).
1942
1940
1943
1941
</div>
1944
1942
0 commit comments