From 95a3394ebb49ae12383b1e49dcda970ab8d10246 Mon Sep 17 00:00:00 2001 From: jgraham Date: Mon, 10 Jul 2023 16:57:28 +0100 Subject: [PATCH] Revert "Update references to JavaScript primitives" This reverts commit cbc17e9c14c33353cc59d56873eaf44a782400b8. --- index.bs | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/index.bs b/index.bs index a1bd8972..f125c260 100644 --- a/index.bs +++ b/index.bs @@ -4900,20 +4900,22 @@ To serialize primitive protocol value given a |value|: of steps for which the associated condition is true, if any:
-
[=Type=](|value|) is {{undefined}} +
[=Type=](|value|) is undefined
Let |remote value| be a [=/map=] matching the script.UndefinedValue production in the [=local end definition=]. -
[=Type=](|value|) is [=null=] +
[=Type=](|value|) is Null
Let |remote value| be a [=/map=] matching the script.NullValue production in the [=local end definition=]. -
[=Type=](|value|) is {{String}} +
[=Type=](|value|) is String
Let |remote value| be a [=/map=] matching the script.StringValue production in the [=local end definition=], with the value property set to |value|. -
[=Type=](|value|) is {{Number}} + Issue: This doesn't handle lone surrogates + +
[=Type=](|value|) is Number
1. Switch on the value of |value|:
@@ -4933,12 +4935,12 @@ To serialize primitive protocol value given a |value|: production in the [=local end definition=], with the value property set to |serialized|. -
[=Type=](|value|) is {{Boolean}} +
[=Type=](|value|) is Boolean
Let |remote value| be a [=/map=] matching the script.BooleanValue production in the [=local end definition=], with the value property set to |value|. -
[=Type=](|value|) is {{BigInt}} +
[=Type=](|value|) is BigInt
Let |remote value| be a [=/map=] matching the script.BigIntValue production in the [=local end definition=], with the value property set to the result of running the [=ToString=] operation on