diff options
author | Andy Friesen <andy@imvu.com> | 2013-01-31 10:10:49 -0800 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2013-04-12 14:23:47 +0300 |
commit | 3b6ea45565ae17f32d77933b505a6ccfe7a8967f (patch) | |
tree | 19c81bafb8888a9c7f43cb5deb2a7fade6b3d724 /tests/embind/embind_test.js | |
parent | 5b3d12c90558f0472c374349c5a4cdce474832a4 (diff) |
emscripten::internal::optional is now copyable.
Fix JSInterface::JSInterface copy constructor to take a const&
Diffstat (limited to 'tests/embind/embind_test.js')
-rw-r--r-- | tests/embind/embind_test.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/embind/embind_test.js b/tests/embind/embind_test.js index 8c61553b..9ba6a48f 100644 --- a/tests/embind/embind_test.js +++ b/tests/embind/embind_test.js @@ -390,4 +390,9 @@ module({ assert.deepEqual(['called'], calls); }, }); + + test('emscripten::internal::optional', function () { + assert.true(cm.optional_test_copy()); + assert.false(cm.optional_test_copy2()); + }); }); |