| Index: src/api.cc
|
| diff --git a/src/api.cc b/src/api.cc
|
| index aa36641f7e570640dfa5966c13d22122151e3d12..e6833530041b9794dbd0c63f34e5c6e26d33d0e9 100644
|
| --- a/src/api.cc
|
| +++ b/src/api.cc
|
| @@ -1,4 +1,4 @@
|
| -// Copyright 2010 the V8 project authors. All rights reserved.
|
| +// Copyright 2011 the V8 project authors. All rights reserved.
|
| // Redistribution and use in source and binary forms, with or without
|
| // modification, are permitted provided that the following conditions are
|
| // met:
|
| @@ -2751,6 +2751,15 @@ bool Object::SetAccessor(Handle<String> name,
|
| }
|
|
|
|
|
| +bool v8::Object::HasOwnProperty(Handle<String> key) {
|
| + i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate();
|
| + ON_BAILOUT(isolate, "v8::Object::HasOwnProperty()",
|
| + return false);
|
| + return Utils::OpenHandle(this)->HasLocalProperty(
|
| + *Utils::OpenHandle(*key));
|
| +}
|
| +
|
| +
|
| bool v8::Object::HasRealNamedProperty(Handle<String> key) {
|
| i::Isolate* isolate = Utils::OpenHandle(this)->GetIsolate();
|
| ON_BAILOUT(isolate, "v8::Object::HasRealNamedProperty()",
|
|
|