Mark Dictionary.Get as const.

This commit is contained in:
Cheng Zhao 2014-06-23 21:39:03 +08:00
parent 51a55810b9
commit 94044b2950

View file

@ -31,7 +31,7 @@ class Dictionary {
static Dictionary CreateEmpty(v8::Isolate* isolate);
template<typename T>
bool Get(const base::StringPiece& key, T* out) {
bool Get(const base::StringPiece& key, T* out) const {
v8::Handle<v8::Value> val = object_->Get(StringToV8(isolate_, key));
return ConvertFromV8(isolate_, val, out);
}