OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 1440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1451 // | 1451 // |
1452 // Note also that this only works for named properties. | 1452 // Note also that this only works for named properties. |
1453 V8EXPORT bool ForceSet(Handle<Value> key, | 1453 V8EXPORT bool ForceSet(Handle<Value> key, |
1454 Handle<Value> value, | 1454 Handle<Value> value, |
1455 PropertyAttribute attribs = None); | 1455 PropertyAttribute attribs = None); |
1456 | 1456 |
1457 V8EXPORT Local<Value> Get(Handle<Value> key); | 1457 V8EXPORT Local<Value> Get(Handle<Value> key); |
1458 | 1458 |
1459 V8EXPORT Local<Value> Get(uint32_t index); | 1459 V8EXPORT Local<Value> Get(uint32_t index); |
1460 | 1460 |
| 1461 /** |
| 1462 * Gets the property attributes of a property. |
| 1463 * Can be None or any combination of ReadOnly, DontEnum and DontDelete. |
| 1464 * |
| 1465 * Note: Returns None when the property doesn't exist. |
| 1466 */ |
| 1467 V8EXPORT PropertyAttribute GetPropertyAttributes(Handle<Value> key); |
| 1468 |
1461 // TODO(1245389): Replace the type-specific versions of these | 1469 // TODO(1245389): Replace the type-specific versions of these |
1462 // functions with generic ones that accept a Handle<Value> key. | 1470 // functions with generic ones that accept a Handle<Value> key. |
1463 V8EXPORT bool Has(Handle<String> key); | 1471 V8EXPORT bool Has(Handle<String> key); |
1464 | 1472 |
1465 V8EXPORT bool Delete(Handle<String> key); | 1473 V8EXPORT bool Delete(Handle<String> key); |
1466 | 1474 |
1467 // Delete a property on this object bypassing interceptors and | 1475 // Delete a property on this object bypassing interceptors and |
1468 // ignoring dont-delete attributes. | 1476 // ignoring dont-delete attributes. |
1469 V8EXPORT bool ForceDelete(Handle<Value> key); | 1477 V8EXPORT bool ForceDelete(Handle<Value> key); |
1470 | 1478 |
(...skipping 2724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4195 | 4203 |
4196 | 4204 |
4197 } // namespace v8 | 4205 } // namespace v8 |
4198 | 4206 |
4199 | 4207 |
4200 #undef V8EXPORT | 4208 #undef V8EXPORT |
4201 #undef TYPE_CHECK | 4209 #undef TYPE_CHECK |
4202 | 4210 |
4203 | 4211 |
4204 #endif // V8_H_ | 4212 #endif // V8_H_ |
OLD | NEW |