diff options
author | Chad Austin <chad@imvu.com> | 2013-01-22 16:15:18 -0800 |
---|---|---|
committer | Jukka Jylänki <jujjyl@gmail.com> | 2013-04-12 14:23:27 +0300 |
commit | 09bfd969bd413be3dbcdd5dbf89c17211efed85b (patch) | |
tree | f88f8e950652328403329cc1effc39b6337cb66b | |
parent | 066540930e679a965fa002cb09b3e6cc3bcc2c97 (diff) |
after merge we need to fix hasOwnProperty to use []
-rw-r--r-- | system/include/emscripten/val.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/system/include/emscripten/val.h b/system/include/emscripten/val.h index 87126d08..d6b1ac04 100644 --- a/system/include/emscripten/val.h +++ b/system/include/emscripten/val.h @@ -101,7 +101,7 @@ namespace emscripten { } bool hasOwnProperty(const char* key) const { - return val::global("Object").get("prototype").get("hasOwnProperty").call("call", *this, val(key)).as<bool>(); + return val::global("Object")["prototype"]["hasOwnProperty"].call("call", *this, val(key)).as<bool>(); } template<typename T> |