Chromium Code Reviews| Index: include/v8.h |
| diff --git a/include/v8.h b/include/v8.h |
| index 892507b4f69f73b9fbcddd4ab8fae2dd527c7439..b8b0d498853a3c434d3890fd3c8bd53bce10aca9 100644 |
| --- a/include/v8.h |
| +++ b/include/v8.h |
| @@ -1045,6 +1045,16 @@ class V8EXPORT Object : public Value { |
| bool Set(Handle<Value> key, |
| Handle<Value> value, |
| PropertyAttribute attribs = None); |
| + |
| + // Sets a local property on this object, bypassing interceptors and |
|
Mads Ager (chromium)
2009/04/21 13:24:16
For now this only forces the set for string keys,
|
| + // overriding accessors or read-only properties. |
| + // |
| + // Note that if the object has an interceptor the property will be set |
| + // locally, but since the interceptor takes precedence the local property |
| + // will only be returned if the interceptor doesn't return a value. |
| + bool ForceSet(Handle<Value> key, |
| + Handle<Value> value, |
| + PropertyAttribute attribs = None); |
| Local<Value> Get(Handle<Value> key); |
| // TODO(1245389): Replace the type-specific versions of these |