diff options
author | Chad Austin <caustin@gmail.com> | 2014-03-23 15:48:44 -0700 |
---|---|---|
committer | Chad Austin <chad@chadaustin.me> | 2014-03-28 23:56:41 -0700 |
commit | bcb2da768ab5b559b1603b28e3f7b1a3e1b0b6fc (patch) | |
tree | a43712a76c2a0918ec9afa1d4dae93416a8b0130 /tests/embind/embind.test.js | |
parent | f9ef5a0002a3b2980d14f874514eeffa4f48dbbd (diff) |
Fix passing memory_views in varargs
Diffstat (limited to 'tests/embind/embind.test.js')
-rw-r--r-- | tests/embind/embind.test.js | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/embind/embind.test.js b/tests/embind/embind.test.js index 2e74c133..4ac8fe52 100644 --- a/tests/embind/embind.test.js +++ b/tests/embind/embind.test.js @@ -1986,12 +1986,16 @@ module({ }); test("memory view", function() { - function factory(view) { + function factory(before, view, after) { + this.before = before; this.view = view; + this.after = after; } var instance = cm.construct_with_memory_view(factory); + assert.equal("before", instance.before); assert.equal(10, instance.view.byteLength); + assert.equal("after", instance.after); }); }); }); |