mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-07-15 12:21:37 +00:00
.cargo
ci
crates
examples
add
canvas
char
closures
console_log
dom
duck-typed-interfaces
fetch
guide-supported-types-examples
hello_world
import_js
crate
src
Cargo.toml
defined-in-js.js
README.md
index.html
index.js
package.json
webpack.config.js
julia_set
paint
performance
raytrace-parallel
request-animation-frame
todomvc
wasm-in-wasm
wasm2js
webaudio
webgl
without-a-bundler
without-a-bundler-no-modules
.gitignore
README.md
guide
releases
src
tests
.gitattributes
.gitignore
CHANGELOG.md
CONTRIBUTING.md
Cargo.toml
LICENSE-APACHE
LICENSE-MIT
README.md
_package.json
azure-pipelines.yml
build.rs
publish.rs
22 lines
310 B
JavaScript
22 lines
310 B
JavaScript
export function name() {
|
|
return 'World';
|
|
}
|
|
|
|
export class MyClass {
|
|
constructor() {
|
|
this._number = 42;
|
|
}
|
|
|
|
get number() {
|
|
return this._number;
|
|
}
|
|
|
|
set number(n) {
|
|
return this._number = n;
|
|
}
|
|
|
|
render() {
|
|
return `My number is: ${this.number}`;
|
|
}
|
|
}
|