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

Side by Side Diff: include/v8.h

Issue 306203002: Remove PROHIBITS_OVERWRITING as it is subsumed by non-configurable properties. (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Restore include/v8.h declaration to avoid dependencies Created 6 years, 6 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/accessors.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 the V8 project authors. All rights reserved. 1 // Copyright 2012 the V8 project authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** \mainpage V8 API Reference Guide 5 /** \mainpage V8 API Reference Guide
6 * 6 *
7 * V8 is Google's open source JavaScript engine. 7 * V8 is Google's open source JavaScript engine.
8 * 8 *
9 * This set of documents provides reference material generated from the 9 * This set of documents provides reference material generated from the
10 * V8 header file, include/v8.h. 10 * V8 header file, include/v8.h.
(...skipping 2054 matching lines...) Expand 10 before | Expand all | Expand 10 after
2065 const PropertyCallbackInfo<void>& info); 2065 const PropertyCallbackInfo<void>& info);
2066 2066
2067 2067
2068 /** 2068 /**
2069 * Access control specifications. 2069 * Access control specifications.
2070 * 2070 *
2071 * Some accessors should be accessible across contexts. These 2071 * Some accessors should be accessible across contexts. These
2072 * accessors have an explicit access control parameter which specifies 2072 * accessors have an explicit access control parameter which specifies
2073 * the kind of cross-context access that should be allowed. 2073 * the kind of cross-context access that should be allowed.
2074 * 2074 *
2075 * Additionally, for security, accessors can prohibit overwriting by 2075 * TODO(dcarney): Remove PROHIBITS_OVERWRITING as it is now unused.
2076 * accessors defined in JavaScript. For objects that have such
2077 * accessors either locally or in their prototype chain it is not
2078 * possible to overwrite the accessor by using __defineGetter__ or
2079 * __defineSetter__ from JavaScript code.
2080 */ 2076 */
2081 enum AccessControl { 2077 enum AccessControl {
2082 DEFAULT = 0, 2078 DEFAULT = 0,
2083 ALL_CAN_READ = 1, 2079 ALL_CAN_READ = 1,
2084 ALL_CAN_WRITE = 1 << 1, 2080 ALL_CAN_WRITE = 1 << 1,
2085 PROHIBITS_OVERWRITING = 1 << 2 2081 PROHIBITS_OVERWRITING = 1 << 2
2086 }; 2082 };
2087 2083
2088 2084
2089 /** 2085 /**
(...skipping 4540 matching lines...) Expand 10 before | Expand all | Expand 10 after
6630 */ 6626 */
6631 6627
6632 6628
6633 } // namespace v8 6629 } // namespace v8
6634 6630
6635 6631
6636 #undef TYPE_CHECK 6632 #undef TYPE_CHECK
6637 6633
6638 6634
6639 #endif // V8_H_ 6635 #endif // V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/accessors.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698