1
0
mirror of https://github.com/fluencelabs/wasm-bindgen synced 2025-07-03 06:31:34 +00:00
Files
crates
examples
add
asm.js
char
closures
comments
console_log
dom
hello_world
import_js
math
no_modules
performance
smorgasboard
src
.gitignore
Cargo.toml
README.md
app.js
awesome.js
build.sh
index.html
index.js
package.json
webpack.config.js
wasm-in-wasm
README.md
guide
releases
src
tests
.appveyor.yml
.eslintrc.js
.gitignore
.travis.yml
CHANGELOG.md
CONTRIBUTING.md
Cargo.toml
LICENSE-APACHE
LICENSE-MIT
README.md
package.json
yarn.lock
wasm-bindgen/examples/smorgasboard/awesome.js

15 lines
244 B
JavaScript
Raw Normal View History

2018-03-02 20:19:39 -08:00
export function bar_on_reset(s, token) {
console.log(token);
console.log(`this instance of bar was reset to ${s}`);
}
export class Awesome {
constructor() {
this.internal = 32;
}
get_internal() {
return this.internal;
}
}