diff --git a/document/js-api/index.bs b/document/js-api/index.bs
index 0993c02529..cf542d81d3 100644
--- a/document/js-api/index.bs
+++ b/document/js-api/index.bs
@@ -748,6 +748,7 @@ which can be simultaneously referenced by multiple {{Instance}} objects. Each
The algorithm
ToValueType(|s|) performs the following steps:
1. If |s| equals "i32", return [=ππ₯π€=].
+ 1. If |s| equals "i64", return [=ππ¨π¦=].
1. If |s| equals "f32", return [=πΏπ₯π€=].
1. If |s| equals "f64", return [=πΏπ¨π¦=].
1. Otherwise, throw a {{TypeError}} exception.
@@ -756,6 +757,7 @@ which can be simultaneously referenced by multiple {{Instance}} objects. Each
The algorithm DefaultValue(|valuetype|) performs the following steps:
1. If |valuetype| equals [=ππ₯π€=], return [=ππ₯π€.πΌππππ=] 0.
+ 1. If |valuetype| equals [=ππ¨π¦=], return [=ππ¨π¦.πΌππππ=] 0.
1. If |valuetype| equals [=πΏπ₯π€=], return [=πΏπ₯π€.πΌππππ=] 0.
1. If |valuetype| equals [=πΏπ¨π¦=], return [=πΏπ¨π¦.πΌππππ=] 0.
1. Otherwise, throw a {{TypeError}} exception.
@@ -765,7 +767,11 @@ which can be simultaneously referenced by multiple {{Instance}} objects. Each
The Global(descriptor, v) constructor, when invoked, performs the following steps:
1. Let |mutable| be |descriptor|["mutable"].
1. Let |valuetype| be [=ToValueType=](|descriptor|["value"]).
- 1. If |v| is undefined, let |value| be [=DefaultValue=](|valuetype|); otherwise, let |value| be [=ToWebAssemblyValue=](|v|, |valuetype|).
+ 1. If |v| is undefined,
+ 1. let |value| be [=DefaultValue=](|valuetype|).
+ 1. Otherwise,
+ 1. If |valuetype| is [=ππ¨π¦=], throw a {{TypeError}} exception.
+ 1. Let |value| be [=ToWebAssemblyValue=](|v|, |valuetype|).
1. If |mutable| is true, let |globaltype| be [=var=] |valuetype|; otherwise, let |globaltype| be [=const=] |valuetype|.
1. Let |store| be the current agent's [=associated store=].
1. Let (|store|, |globaladdr|) be [=alloc_global=](|store|, |globaltype|, |value|).