From 539be03bb94400fffe413fcc379ba033a410acd6 Mon Sep 17 00:00:00 2001 From: Heejin Ahn Date: Mon, 14 Feb 2022 23:46:55 -0800 Subject: [PATCH] [js-api] Few small fixes (#200) --- document/js-api/index.bs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/document/js-api/index.bs b/document/js-api/index.bs index 5df56085..8b49d0e6 100644 --- a/document/js-api/index.bs +++ b/document/js-api/index.bs @@ -447,8 +447,8 @@ The verification of WebAssembly type requirements is deferred to the 1. Assert: |attribute| is [=tagtype/attribute/exception=]. 1. Assert: |externval| is of the form [=external value/tag=] |tagaddr|. 1. Let [=external value/tag=] |tagaddr| be |externval|. - 1. Let |exception| be [=create a Tag object|a new Tag object=] created from |tagaddr|. - 1. Let |value| be |exception|. + 1. Let |tag| be [=create a Tag object|a new Tag object=] created from |tagaddr|. + 1. Let |value| be |tag|. 1. Let |status| be ! [=CreateDataProperty=](|exportsObject|, |name|, |value|). 1. Assert: |status| is true. @@ -1101,6 +1101,7 @@ Note: Exported Functions do not have a \[[Construct]] method and thus it is not 1. [=Clean up after running script=] with |relevant settings|. 1. Assert: |result|.\[[Type]] is throw or normal. 1. If |result|.\[[Type]] is throw, then: + 1. Let |v| be |result|.\[[Value]]. 1. If |v| [=implements=] {{Exception}}, 1. Let |type| be |v|.\[[Type]]. 1. Let |payload| be |v|.\[[Payload]]. @@ -1198,7 +1199,7 @@ interface Tag { }; -An {{Tag}} value represents a type of exception. +A {{Tag}} value represents a type of exception.