aboutsummaryrefslogtreecommitdiff
path: root/tests/embind
diff options
context:
space:
mode:
authorChad Austin <chad@imvu.com>2014-05-08 21:41:34 -0700
committerBruce Mitchener <bruce.mitchener@gmail.com>2014-05-21 22:58:53 +0700
commitc75048adf764b9f14ed7a91dc46dfaee66dcbf3a (patch)
treea48c0405aa3e7bd5d81c31261697fba38d864f80 /tests/embind
parentec70dcb7bc76221949c057b5284c256d9959579a (diff)
If embind knows about a live JavaScript instance and it matches a raw pointer that gets returned, then return the JS instance.
Diffstat (limited to 'tests/embind')
-rw-r--r--tests/embind/embind.test.js7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/embind/embind.test.js b/tests/embind/embind.test.js
index e77a8a43..b174b52d 100644
--- a/tests/embind/embind.test.js
+++ b/tests/embind/embind.test.js
@@ -1776,6 +1776,7 @@ module({
},
__destruct: function() {
calls.push("__destruct");
+ this.__parent.__destruct.call(this);
}
});
var impl = new C;
@@ -1786,7 +1787,6 @@ module({
assert.deepEqual(["__destruct"], calls);
});
-/* does not pass yet
test("if JavaScript implementation of interface is returned, don't wrap in new handle", function() {
var parent = cm.HeldAbstractClass;
var C = parent.extend("C", {
@@ -1795,11 +1795,10 @@ module({
});
var impl = new C;
var rv = cm.passHeldAbstractClass(impl);
- assert.equal(impl, rv);
-
impl.delete();
+ assert.equal(impl, rv);
+ rv.delete();
});
-*/
});
BaseFixture.extend("registration order", function() {