Port Reflect tests to wasm

This commit is contained in:
Alex Crichton
2018-07-21 20:07:55 -07:00
parent 315b5d848e
commit 59c04e26d4
7 changed files with 220 additions and 613 deletions

View 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;
}
};