mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-27 03:55:20 +03:00
151acf8eb3
Closes #208
22 lines
276 B
JavaScript
22 lines
276 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}`;
|
|
}
|
|
}
|