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

Side by Side Diff: include/v8.h

Issue 1859993002: Revert of [api] Restrict Template::Set to take templates or primitive values (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « no previous file | src/api.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 4084 matching lines...) Expand 10 before | Expand all | Expand 10 after
4095 4095
4096 4096
4097 // --- Templates --- 4097 // --- Templates ---
4098 4098
4099 4099
4100 /** 4100 /**
4101 * The superclass of object and function templates. 4101 * The superclass of object and function templates.
4102 */ 4102 */
4103 class V8_EXPORT Template : public Data { 4103 class V8_EXPORT Template : public Data {
4104 public: 4104 public:
4105 /** 4105 /** Adds a property to each instance created by this template.*/
4106 * Adds a property to each instance created by this template.
4107 *
4108 * The property must be defined either as a primitive value, or a template.
4109 */
4110 void Set(Local<Name> name, Local<Data> value, 4106 void Set(Local<Name> name, Local<Data> value,
4111 PropertyAttribute attributes = None); 4107 PropertyAttribute attributes = None);
4112 V8_INLINE void Set(Isolate* isolate, const char* name, Local<Data> value); 4108 V8_INLINE void Set(Isolate* isolate, const char* name, Local<Data> value);
4113 4109
4114 void SetAccessorProperty( 4110 void SetAccessorProperty(
4115 Local<Name> name, 4111 Local<Name> name,
4116 Local<FunctionTemplate> getter = Local<FunctionTemplate>(), 4112 Local<FunctionTemplate> getter = Local<FunctionTemplate>(),
4117 Local<FunctionTemplate> setter = Local<FunctionTemplate>(), 4113 Local<FunctionTemplate> setter = Local<FunctionTemplate>(),
4118 PropertyAttribute attribute = None, 4114 PropertyAttribute attribute = None,
4119 AccessControl settings = DEFAULT); 4115 AccessControl settings = DEFAULT);
(...skipping 4571 matching lines...) Expand 10 before | Expand all | Expand 10 after
8691 */ 8687 */
8692 8688
8693 8689
8694 } // namespace v8 8690 } // namespace v8
8695 8691
8696 8692
8697 #undef TYPE_CHECK 8693 #undef TYPE_CHECK
8698 8694
8699 8695
8700 #endif // INCLUDE_V8_H_ 8696 #endif // INCLUDE_V8_H_
OLDNEW
« no previous file with comments | « no previous file | src/api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698