Vendor things
This commit is contained in:
parent
5deceec006
commit
977e3c17e5
19434 changed files with 10682014 additions and 0 deletions
25
third-party/vendor/wasm-bindgen/tests/wasm/final.js
vendored
Normal file
25
third-party/vendor/wasm-bindgen/tests/wasm/final.js
vendored
Normal file
|
|
@ -0,0 +1,25 @@
|
|||
const assert = require('assert');
|
||||
|
||||
exports.MyType = class {
|
||||
static foo(y) {
|
||||
assert.equal(y, 'x');
|
||||
return y + 'y';
|
||||
}
|
||||
|
||||
constructor(x) {
|
||||
assert.equal(x, 2);
|
||||
this._a = 1;
|
||||
}
|
||||
|
||||
bar(x) {
|
||||
assert.equal(x, true);
|
||||
return 3.2;
|
||||
}
|
||||
|
||||
get a() {
|
||||
return this._a;
|
||||
}
|
||||
set a(v) {
|
||||
this._a = v;
|
||||
}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue