Skip to content

Commit 9a9a143

Browse files
committed
Handle ToTableKind as well
1 parent fa0897b commit 9a9a143

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

document/js-api/index.bs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -849,7 +849,7 @@ Each {{Table}} object has a \[[Table]] internal slot, which is a [=table address
849849

850850
The algorithm <dfn abstract-op>ToTableKind</dfn>(|t|) performs the following steps:
851851

852-
1. If |t| equals [=funcref=], return "{{TableKind/anyfunc}}".
852+
1. If |t| equals [=funcref=], return "{{TableKind/funcref}}".
853853
1. If |t| equals [=externref=], return "{{TableKind/externref}}".
854854
1. Assert: This step is not reached.
855855

test/js-api/module/exports.any.js

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -28,25 +28,25 @@ function assert_ModuleExportDescriptor(export_, expected) {
2828
assert_true(type.enumerable, 'type: enumerable');
2929
assert_true(type.configurable, 'type: configurable');
3030

31-
if (expected.type.parameters) {
31+
if (expected.type.parameters !== undefined) {
3232
assert_array_equals(type.value.parameters, expected.type.parameters);
3333
}
34-
if (expected.type.results) {
34+
if (expected.type.results !== undefined) {
3535
assert_array_equals(type.value.results, expected.type.results);
3636
}
37-
if (expected.type.value) {
37+
if (expected.type.value !== undefined) {
3838
assert_equals(type.value.value, expected.type.value);
3939
}
4040
if (expected.type.mutable !== undefined) {
4141
assert_equals(type.value.mutable, expected.type.mutable);
4242
}
43-
if (expected.type.mimimum) {
43+
if (expected.type.mimimum !== undefined) {
4444
assert_equals(type.value.mimimum, expected.type.mimimum);
4545
}
46-
if (expected.type.maximum) {
46+
if (expected.type.maximum !== undefined) {
4747
assert_equals(type.value.maximum, expected.type.maximum);
4848
}
49-
if (expected.type.element) {
49+
if (expected.type.element !== undefined) {
5050
assert_equals(type.value.element, expected.type.element);
5151
}
5252
}

0 commit comments

Comments
 (0)