aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChad Austin <chad@imvu.com>2013-01-22 16:15:18 -0800
committerJukka Jylänki <jujjyl@gmail.com>2013-04-12 14:23:27 +0300
commit09bfd969bd413be3dbcdd5dbf89c17211efed85b (patch)
treef88f8e950652328403329cc1effc39b6337cb66b
parent066540930e679a965fa002cb09b3e6cc3bcc2c97 (diff)
after merge we need to fix hasOwnProperty to use []
-rw-r--r--system/include/emscripten/val.h2
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>