OLD | NEW |
---|---|
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 3254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
3265 */ | 3265 */ |
3266 class V8_EXPORT Function : public Object { | 3266 class V8_EXPORT Function : public Object { |
3267 public: | 3267 public: |
3268 /** | 3268 /** |
3269 * Create a function in the current execution context | 3269 * Create a function in the current execution context |
3270 * for a given FunctionCallback. | 3270 * for a given FunctionCallback. |
3271 */ | 3271 */ |
3272 static MaybeLocal<Function> New(Local<Context> context, | 3272 static MaybeLocal<Function> New(Local<Context> context, |
3273 FunctionCallback callback, | 3273 FunctionCallback callback, |
3274 Local<Value> data = Local<Value>(), | 3274 Local<Value> data = Local<Value>(), |
3275 int length = 0); | 3275 int length = 0, |
3276 bool remove_constructor = false); | |
Toon Verwaest
2016/07/06 10:56:47
Does it fit with the V8 api to turn this into an e
| |
3276 static V8_DEPRECATE_SOON( | 3277 static V8_DEPRECATE_SOON( |
3277 "Use maybe version", | 3278 "Use maybe version", |
3278 Local<Function> New(Isolate* isolate, FunctionCallback callback, | 3279 Local<Function> New(Isolate* isolate, FunctionCallback callback, |
3279 Local<Value> data = Local<Value>(), int length = 0)); | 3280 Local<Value> data = Local<Value>(), int length = 0)); |
3280 | 3281 |
3281 V8_DEPRECATED("Use maybe version", | 3282 V8_DEPRECATED("Use maybe version", |
3282 Local<Object> NewInstance(int argc, Local<Value> argv[]) const); | 3283 Local<Object> NewInstance(int argc, Local<Value> argv[]) const); |
3283 V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance( | 3284 V8_WARN_UNUSED_RESULT MaybeLocal<Object> NewInstance( |
3284 Local<Context> context, int argc, Local<Value> argv[]) const; | 3285 Local<Context> context, int argc, Local<Value> argv[]) const; |
3285 | 3286 |
(...skipping 5626 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
8912 */ | 8913 */ |
8913 | 8914 |
8914 | 8915 |
8915 } // namespace v8 | 8916 } // namespace v8 |
8916 | 8917 |
8917 | 8918 |
8918 #undef TYPE_CHECK | 8919 #undef TYPE_CHECK |
8919 | 8920 |
8920 | 8921 |
8921 #endif // INCLUDE_V8_H_ | 8922 #endif // INCLUDE_V8_H_ |
OLD | NEW |