aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChad Austin <chad@imvu.com>2014-05-16 23:34:47 -0700
committerChad Austin <chad@chadaustin.me>2014-05-16 23:41:36 -0700
commitb41adadcf60a25c14f4b139d0ee664521f76a620 (patch)
treebfa375fa57f071b4eb0aeb49d1630fa41171b80e /src
parent398cded47b7e08fbb753fb7b4788da29a22195bb (diff)
expose typeof via emscripten::val
Diffstat (limited to 'src')
-rw-r--r--src/embind/emval.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/embind/emval.js b/src/embind/emval.js
index 4007701a..ebec3881 100644
--- a/src/embind/emval.js
+++ b/src/embind/emval.js
@@ -286,3 +286,8 @@ function __emval_has_function(handle, name) {
name = getStringOrSymbol(name);
return handle[name] instanceof Function;
}
+
+function __emval_typeof(handle) {
+ handle = requireHandle(handle);
+ return __emval_register(typeof handle);
+}