mirror of
https://github.com/fluencelabs/wasm-bindgen
synced 2025-06-12 12:31:22 +00:00
Port Reflect
tests to wasm
This commit is contained in:
25
crates/js-sys/tests/wasm/Reflect.js
Normal file
25
crates/js-sys/tests/wasm/Reflect.js
Normal file
@ -0,0 +1,25 @@
|
||||
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;
|
||||
}
|
||||
};
|
Reference in New Issue
Block a user