Skip to content

Commit

Permalink
Update references to JavaScript primitives
Browse files Browse the repository at this point in the history
  • Loading branch information
jrandolf-2 committed Jul 10, 2023
1 parent 6736ff3 commit cbc17e9
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -4882,22 +4882,20 @@ To <dfn>serialize primitive protocol value</dfn> given a |value|:
of steps for which the associated condition is true, if any:

<dl>
<dt>[=Type=](|value|) is undefined
<dt>[=Type=](|value|) is {{undefined}}
<dd>Let |remote value| be a [=/map=] matching the <code>script.UndefinedValue</code>
production in the [=local end definition=].

<dt>[=Type=](|value|) is Null
<dt>[=Type=](|value|) is <code>[=null=]</code>
<dd>Let |remote value| be a [=/map=] matching the <code>script.NullValue</code>
production in the [=local end definition=].

<dt>[=Type=](|value|) is String
<dt>[=Type=](|value|) is {{String}}
<dd>Let |remote value| be a [=/map=] matching the <code>script.StringValue</code>
production in the [=local end definition=], with the <code>value</code>
property set to |value|.

Issue: This doesn't handle lone surrogates

<dt>[=Type=](|value|) is Number
<dt>[=Type=](|value|) is {{Number}}
<dd>
1. Switch on the value of |value|:
<dl>
Expand All @@ -4917,12 +4915,12 @@ To <dfn>serialize primitive protocol value</dfn> given a |value|:
production in the [=local end definition=], with the <code>value</code>
property set to |serialized|.

<dt>[=Type=](|value|) is Boolean
<dt>[=Type=](|value|) is {{Boolean}}
<dd>Let |remote value| be a [=/map=] matching the <code>script.BooleanValue</code>
production in the [=local end definition=], with the <code>value</code>
property set to |value|.

<dt>[=Type=](|value|) is BigInt
<dt>[=Type=](|value|) is {{BigInt}}
<dd>Let |remote value| be a [=/map=] matching the <code>script.BigIntValue</code>
production in the [=local end definition=], with the <code>value</code>
property set to the result of running the [=ToString=] operation on
Expand Down

0 comments on commit cbc17e9

Please sign in to comment.