Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(80)

Side by Side Diff: include/v8.h

Issue 7321006: Add GetPropertyAttribute method for Object in the API (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 9 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/api.cc » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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.
Mads Ager (chromium) 2011/07/12 07:51:30 You should document that this returns None if the
1440 * Can be None or any combination of ReadOnly, DontEnum and DontDelete.
1441 */
1442 V8EXPORT PropertyAttribute GetPropertyAttribute(Handle<Value> key);
1443
1438 // TODO(1245389): Replace the type-specific versions of these 1444 // TODO(1245389): Replace the type-specific versions of these
1439 // functions with generic ones that accept a Handle<Value> key. 1445 // functions with generic ones that accept a Handle<Value> key.
1440 V8EXPORT bool Has(Handle<String> key); 1446 V8EXPORT bool Has(Handle<String> key);
1441 1447
1442 V8EXPORT bool Delete(Handle<String> key); 1448 V8EXPORT bool Delete(Handle<String> key);
1443 1449
1444 // Delete a property on this object bypassing interceptors and 1450 // Delete a property on this object bypassing interceptors and
1445 // ignoring dont-delete attributes. 1451 // ignoring dont-delete attributes.
1446 V8EXPORT bool ForceDelete(Handle<Value> key); 1452 V8EXPORT bool ForceDelete(Handle<Value> key);
1447 1453
(...skipping 2655 matching lines...) Expand 10 before | Expand all | Expand 10 after
4103 4109
4104 4110
4105 } // namespace v8 4111 } // namespace v8
4106 4112
4107 4113
4108 #undef V8EXPORT 4114 #undef V8EXPORT
4109 #undef TYPE_CHECK 4115 #undef TYPE_CHECK
4110 4116
4111 4117
4112 #endif // V8_H_ 4118 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | src/api.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698