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 1417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1428 // | 1428 // |
1429 // Note also that this only works for named properties. | 1429 // Note also that this only works for named properties. |
1430 V8EXPORT bool ForceSet(Handle<Value> key, | 1430 V8EXPORT bool ForceSet(Handle<Value> key, |
1431 Handle<Value> value, | 1431 Handle<Value> value, |
1432 PropertyAttribute attribs = None); | 1432 PropertyAttribute attribs = None); |
1433 | 1433 |
1434 V8EXPORT Local<Value> Get(Handle<Value> key); | 1434 V8EXPORT Local<Value> Get(Handle<Value> key); |
1435 | 1435 |
1436 V8EXPORT Local<Value> Get(uint32_t index); | 1436 V8EXPORT Local<Value> Get(uint32_t index); |
1437 | 1437 |
1438 /** | |
1439 * Gets the property attributes of a property. | |
1440 * Can be None or any combination of ReadOnly, DontEnum and DontDelete. | |
1441 * | |
1442 * Note: Throws a ReferenceError exception and returns None when the property | |
Mads Ager (chromium)
2011/07/15 07:25:51
I'm not sure I like the idea of throwing a Referen
| |
1443 * doesn't exist. | |
1444 */ | |
1445 V8EXPORT PropertyAttribute GetPropertyAttribute(Handle<Value> key); | |
Mads Ager (chromium)
2011/07/15 07:25:51
GetPropertyAttribute -> GetPropertyAttributes
| |
1446 | |
1438 // TODO(1245389): Replace the type-specific versions of these | 1447 // TODO(1245389): Replace the type-specific versions of these |
1439 // functions with generic ones that accept a Handle<Value> key. | 1448 // functions with generic ones that accept a Handle<Value> key. |
1440 V8EXPORT bool Has(Handle<String> key); | 1449 V8EXPORT bool Has(Handle<String> key); |
1441 | 1450 |
1442 V8EXPORT bool Delete(Handle<String> key); | 1451 V8EXPORT bool Delete(Handle<String> key); |
1443 | 1452 |
1444 // Delete a property on this object bypassing interceptors and | 1453 // Delete a property on this object bypassing interceptors and |
1445 // ignoring dont-delete attributes. | 1454 // ignoring dont-delete attributes. |
1446 V8EXPORT bool ForceDelete(Handle<Value> key); | 1455 V8EXPORT bool ForceDelete(Handle<Value> key); |
1447 | 1456 |
(...skipping 2630 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
4078 | 4087 |
4079 | 4088 |
4080 } // namespace v8 | 4089 } // namespace v8 |
4081 | 4090 |
4082 | 4091 |
4083 #undef V8EXPORT | 4092 #undef V8EXPORT |
4084 #undef TYPE_CHECK | 4093 #undef TYPE_CHECK |
4085 | 4094 |
4086 | 4095 |
4087 #endif // V8_H_ | 4096 #endif // V8_H_ |
OLD | NEW |