diff options
author | Alon Zakai <alonzakai@gmail.com> | 2014-05-18 11:40:05 -0700 |
---|---|---|
committer | Alon Zakai <alonzakai@gmail.com> | 2014-05-18 11:40:05 -0700 |
commit | f0dd2f8d2da50da0ab87f5e2585e59e7a5f521b7 (patch) | |
tree | 6c22b5ac383495f5c61a2175d50a10f9a63e4c95 /src | |
parent | 57360800512dc1b23532e1c125c8e0627ccdbcfa (diff) | |
parent | b41adadcf60a25c14f4b139d0ee664521f76a620 (diff) |
Merge pull request #2360 from chadaustin/expose-val-typeof
expose typeof via emscripten::val
Diffstat (limited to 'src')
-rw-r--r-- | src/embind/emval.js | 5 |
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); +} |