diff options
author | Jukka Jylänki <jujjyl@gmail.com> | 2013-04-16 22:39:50 +0300 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2013-04-18 20:08:34 +0300 |
commit | 11bcd19a9ceae940277ec9ef72bea663f2f50ed1 (patch) | |
tree | 1cb286fda0ef26d909b3ee4ec10b3a477f7ec840 /tests/embind | |
parent | 496b38f13f74e04af233d5ad7307be4f099b07e5 (diff) |
Removed embind class member this pointer 'instanceof' check when serializing this to wire type, since instanceof was profiled to be slow. Instead, the correct instanceof enforcement is done in the upcastPointer function.
Diffstat (limited to 'tests/embind')
-rwxr-xr-x | tests/embind/embind.test.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/embind/embind.test.js b/tests/embind/embind.test.js index 0763f09a..efb5ae84 100755 --- a/tests/embind/embind.test.js +++ b/tests/embind/embind.test.js @@ -143,7 +143,7 @@ module({ var e = assert.throws(cm.BindingError, function() { cm.Derived.prototype.setMember.call(a, "foo"); }); - assert.equal('Expected null or instance of Derived*, got [object Object]', e.message); + assert.equal('Expected null or instance of Derived, got an instance of Base2', e.message); a.delete(); }); @@ -154,7 +154,7 @@ module({ var e = assert.throws(cm.BindingError, function() { cm.Base2.prototype.getField.call(a); }); - assert.equal('Expected null or instance of Base2 const*, got [object Object]', e.message); + assert.equal('Expected null or instance of Base2, got an instance of Base1', e.message); a.delete(); }); |