Skip to content

Commit ebd3d5f

Browse files
committed
Use angle quotes appropriately
1 parent 08353e3 commit ebd3d5f

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

document/js-api/index.bs

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1853,22 +1853,20 @@ The |funcType| of this builtin is `(func (param i32) (result externref))`.
18531853
<div algorithm="js-string-fromCharCode">
18541854
When this builtin is invoked with parameter |v|, the following steps must be run:
18551855

1856-
1. Return [=!=] [$Call$]([=String.fromCharCode=], undefined, [=ToJSValue=](|v|)).
1856+
1. Return [=!=] [$Call$]([=String.fromCharCode=], undefined, « [=ToJSValue=](|v|) »).
18571857

18581858
</div>
18591859

18601860
<h4 id="js-string-fromCodePoint">fromCodePoint</h4>
18611861

1862-
TODO
1863-
18641862
The |funcType| of this builtin is `(func (param i32) (result externref))`.
18651863

18661864
<div algorithm="js-string-fromCodePoint">
18671865
When this builtin is invoked with parameter |v|, the following steps must be run:
18681866

18691867
1. If |v| &gt; 0x10ffff
18701868
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|) »).
18721870

18731871
</div>
18741872

@@ -1883,7 +1881,7 @@ When this builtin is invoked with parameters |string| and |index|, the following
18831881
1. Let |length| be the [=string/length=] of |string|.
18841882
1. If |index| >= |length|
18851883
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|) »).
18871885

18881886
</div>
18891887

@@ -1898,7 +1896,7 @@ When this builtin is invoked with parameters |string| and |index|, the following
18981896
1. Let |length| be the [=string/length=] of |string|.
18991897
1. If |index| >= |length|
19001898
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|) »).
19021900

19031901
</div>
19041902

@@ -1923,7 +1921,7 @@ When this builtin is invoked with parameters |first| and |second|, the following
19231921

19241922
1. Let |first| be [=?=] [$UnwrapString$](|first|).
19251923
1. Let |second| be [=?=] [$UnwrapString$](|second|).
1926-
1. Return [=!=] [$Call$]([=String.prototype.concat=], |first|, &laquo; |second| &raquo;).
1924+
1. Return [=!=] [$Call$]([=String.prototype.concat=], |first|, « |second| »).
19271925

19281926
</div>
19291927

@@ -1938,7 +1936,7 @@ When this builtin is invoked with parameters |string|, |start|, and |end|, the f
19381936
1. Let |length| be the [=string/length=] of |string|.
19391937
1. If |start| > |end| or |start| > |length|
19401938
1. Return the empty string.
1941-
1. Return [=!=] [$Call$]([=String.prototype.substring=], |string|, &laquo; [=ToJSValue=](|start|), [=ToJSValue=](|end|) &raquo;).
1939+
1. Return [=!=] [$Call$]([=String.prototype.substring=], |string|, « [=ToJSValue=](|start|), [=ToJSValue=](|end|) »).
19421940

19431941
</div>
19441942

0 commit comments

Comments
 (0)