Logo
Explore Help
Sign In
fluencelabs/wasm-bindgen
1
0
Fork 0
You've already forked wasm-bindgen
mirror of https://github.com/fluencelabs/wasm-bindgen synced 2025-05-08 20:12:16 +00:00
Code Issues Projects Releases Wiki Activity
wasm-bindgen/examples/performance/index.js

7 lines
178 B
JavaScript
Raw Normal View History

Add an example of the `performance` API
2018-03-21 10:21:21 -07:00
// For more comments about what's going on here, check out the `hello_world`
// example
Applied eslint from main .eslintrc to examples (#418) * Changed eslintrc to be JSON file (Most projects use JSON version) * Added .eslintignore to ingore node_modules from subdirectories such as examples * Ran eslint --fix examples to fix all examples * Added npm script for running eslint against examples * Added npm script for running eslint against generated *out* code * Hooked npm scripts into travis ci to prevent examples from becoming inconsistent with future PR's
2018-07-08 00:02:10 -06:00
const rust = import('./performance');
Add `catch(console.error)` to all examples Some examples have been failing to load in some browsers, and this ensures that whenever the promise to load Rust code fails we log any errors happening instead of accidentally failing silently. This helped debug a bit in #897
2018-09-28 13:54:29 -07:00
rust
.then(m => m.run())
.catch(console.error);
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.7 Page: 68ms Template: 3ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API