blob: 74d8a67ea52643f8198c0e7957b35e60bf822ece [file] [log] [blame]
import { instantiate } from "../wabt-wrapper.js";
(async function () {
try {
let instance = await instantiate(`
(module
(func (export "fence") (atomic.fence))
)
`, {}, { threads: true });
for (var i = 0; i < 1e5; ++i)
instance.exports.fence();
} catch (e) {
print(String(e));
}
}());