mirror of
https://github.com/rustwasm/wasm-bindgen.git
synced 2024-12-17 22:51:47 +03:00
26 lines
328 B
JavaScript
26 lines
328 B
JavaScript
|
exports.get_char_at = function() {
|
||
|
return "foo".charAt;
|
||
|
};
|
||
|
|
||
|
exports.Rectangle = class {
|
||
|
constructor(x, y){
|
||
|
this.x = x,
|
||
|
this.y = y
|
||
|
}
|
||
|
|
||
|
static eq(x, y) {
|
||
|
return x === y;
|
||
|
}
|
||
|
};
|
||
|
|
||
|
exports.Rectangle2 = class {
|
||
|
constructor(x, y){
|
||
|
this.x = x,
|
||
|
this.y = y
|
||
|
}
|
||
|
|
||
|
static eq(x, y) {
|
||
|
return x === y;
|
||
|
}
|
||
|
};
|