aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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>