Chromium Code Reviews| Index: include/v8.h |
| diff --git a/include/v8.h b/include/v8.h |
| index a714f3d95f72243c1ed1e7304b057560cfd270d4..4aaa1053bb3c60d906767697b69ae9b88bde5333 100644 |
| --- a/include/v8.h |
| +++ b/include/v8.h |
| @@ -3056,10 +3056,14 @@ class V8_EXPORT Function : public Object { |
| * Create a function in the current execution context |
| * for a given FunctionCallback. |
| */ |
| - static Local<Function> New(Isolate* isolate, |
| - FunctionCallback callback, |
| - Local<Value> data = Local<Value>(), |
| - int length = 0); |
| + static MaybeLocal<Function> New(Local<Context> context, |
| + FunctionCallback callback, |
| + Local<Value> data = Local<Value>(), |
| + int length = 0); |
| + static V8_DEPRECATE_SOON( |
|
vogelheim
2015/05/22 15:19:51
Why is the 'static' outside of the macro?
jochen (gone - plz use gerrit)
2015/05/22 18:10:02
consistency with existing uses, however, the __dec
|
| + "Use maybe version", |
| + Local<Function> New(Isolate* isolate, FunctionCallback callback, |
| + Local<Value> data = Local<Value>(), int length = 0)); |
| V8_DEPRECATE_SOON("Use maybe version", |
| Local<Object> NewInstance(int argc, Handle<Value> argv[]) |