diff options
author | Chad Austin <caustin@gmail.com> | 2014-03-24 00:54:18 -0700 |
---|---|---|
committer | Chad Austin <chad@chadaustin.me> | 2014-03-28 23:56:41 -0700 |
commit | fa3e4f460a86ee2e0212fe2471690f67b9b4280c (patch) | |
tree | 8f29ee37885f8249bd9bea84bf5dadc5acf99048 /tests/embind/embind.test.js | |
parent | bcb2da768ab5b559b1603b28e3f7b1a3e1b0b6fc (diff) |
Make val::call<> compatible with asm.js
Diffstat (limited to 'tests/embind/embind.test.js')
-rw-r--r-- | tests/embind/embind.test.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/embind/embind.test.js b/tests/embind/embind.test.js index 4ac8fe52..e2160c33 100644 --- a/tests/embind/embind.test.js +++ b/tests/embind/embind.test.js @@ -1997,6 +1997,19 @@ module({ assert.equal(10, instance.view.byteLength); assert.equal("after", instance.after); }); + + test("ints_and_float", function() { + function factory(a, b, c) { + this.a = a; + this.b = b; + this.c = c; + } + + var instance = cm.construct_with_ints_and_float(factory); + assert.equal(65537, instance.a); + assert.equal(4.0, instance.b); + assert.equal(65538, instance.c); + }); }); }); |