mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-22 09:31:31 +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}`;
|
|
}
|
|
}
|