/
germanubis
/
reqwest
Обзор
Документация
Войти
/
germanubis
/
reqwest
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
examples/wasm_github_fetch/index.js
12 строк
394 B
John Gallagher
Add error to JsValue conversion and example (#691)
30 окт 2019, 23:30
30 окт 2019, 23:30
43f2ff0
Код
Авторство
О чём код?
const rust = import('./pkg'); rust .then(m => { return m.run().then((data) => { console.log(data); console.log("The latest commit to the wasm-bindgen %s branch is:", data.name); console.log("%s, authored by %s <%s>", data.commit.sha, data.commit.commit.author.name, data.commit.commit.author.email); }) }) .catch(console.error);