summaryrefslogtreecommitdiffstats
path: root/vendor/wasm-bindgen/tests/wasm/final.js
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/wasm-bindgen/tests/wasm/final.js')
-rw-r--r--vendor/wasm-bindgen/tests/wasm/final.js25
1 files changed, 25 insertions, 0 deletions
diff --git a/vendor/wasm-bindgen/tests/wasm/final.js b/vendor/wasm-bindgen/tests/wasm/final.js
new file mode 100644
index 000000000..15b576d02
--- /dev/null
+++ b/vendor/wasm-bindgen/tests/wasm/final.js
@@ -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;
+ }
+};