Skip to content

Commit eb42622

Browse files
committed
Also change import tests
1 parent 9a9a143 commit eb42622

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,22 +31,22 @@ function assert_ModuleImportDescriptor(import_, expected) {
3131
if (expected.type.parameters) {
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)