Skip to content

Commit f5b9cb8

Browse files
committed
comments
1 parent ec48b29 commit f5b9cb8

File tree

2 files changed

+7
-8
lines changed

2 files changed

+7
-8
lines changed

src/lib/libemval.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -409,8 +409,7 @@ ${functionBody}
409409
return Emval.toHandle(value);
410410
});
411411
},
412-
#endif
413-
#if ASYNCIFY == 2
412+
#else
414413
_emval_await: async (promise) => {
415414
var value = await Emval.toValue(promise);
416415
return Emval.toHandle(value);

test/test_other.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3242,11 +3242,11 @@ def test_embind_asyncify(self):
32423242
''')
32433243
self.do_runf('main.cpp', 'done', cflags=['-lembind', '-sASYNCIFY', '--post-js', 'post.js'])
32443244

3245+
@also_with_wasm64
32453246
@parameterized({
3246-
'': [['-sDYNAMIC_EXECUTION=1']],
3247-
'no_dynamic': [['-sDYNAMIC_EXECUTION=0']],
3248-
'dyncall': [['-sALLOW_MEMORY_GROWTH', '-sMAXIMUM_MEMORY=4GB']],
3249-
'wasm64': (['-sMEMORY64'],),
3247+
'': (['-sDYNAMIC_EXECUTION=1'],),
3248+
'no_dynamic': (['-sDYNAMIC_EXECUTION=0'],),
3249+
'dyncall': (['-sALLOW_MEMORY_GROWTH', '-sMAXIMUM_MEMORY=4GB'],),
32503250
})
32513251
@requires_jspi
32523252
def test_embind_jspi(self, args):
@@ -3500,8 +3500,8 @@ def test_jspi_bad_library_function(self):
35003500
foo();
35013501
}
35023502
''')
3503-
err = self.expect_fail([EMCC, 'main.c', '-o', 'out.js', '-sJSPI', '--js-library=lib.js', '-Wno-experimental',])
3504-
self.assertContained('error: foo is marked with the __async decorator but is not an async JS function.', err)
3503+
err = self.expect_fail([EMCC, 'main.c', '-o', 'out.js', '-sJSPI', '--js-library=lib.js', '-Wno-experimental'])
3504+
self.assertContained('error: \'foo\' is marked with the __async decorator but is not an async JS function.', err)
35053505

35063506
@requires_dev_dependency('typescript')
35073507
@parameterized({

0 commit comments

Comments
 (0)