aboutsummaryrefslogtreecommitdiff
path: root/src/embind/embind.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/embind/embind.js')
-rwxr-xr-xsrc/embind/embind.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/embind/embind.js b/src/embind/embind.js
index 2c5d20c0..e990c1a1 100755
--- a/src/embind/embind.js
+++ b/src/embind/embind.js
@@ -137,15 +137,15 @@ var BindingError = Error;
/** @expose */
Module.BindingError = BindingError;
-function typeName(typeID) {
- // could use our carnal knowledge of RTTI but for now just return the pointer...
- return typeID;
+/*global ___typeName:false*/
+function typeName(type) {
+ return Pointer_stringify(___typeName(type));
}
function requireRegisteredType(type, humanName) {
var impl = typeRegistry[type];
if (undefined === impl) {
- throw new BindingError(humanName + " has unknown type: " + typeName(type));
+ throw new BindingError(humanName + " has unknown type " + typeName(type));
}
return impl;
}