Index: src/factory.h |
=================================================================== |
--- src/factory.h (revision 539) |
+++ src/factory.h (working copy) |
@@ -265,9 +265,16 @@ |
Handle<Object> value, |
PropertyAttributes attributes); |
- static Handle<JSFunction> CreateApiFunction(Handle<FunctionTemplateInfo> data, |
- bool is_global = false); |
+ enum ApiInstanceType { |
+ JavaScriptObject, |
+ InnerGlobalObject, |
+ OuterGlobalObject |
+ }; |
+ static Handle<JSFunction> CreateApiFunction( |
+ Handle<FunctionTemplateInfo> data, |
+ ApiInstanceType type = JavaScriptObject); |
+ |
static Handle<JSFunction> InstallMembers(Handle<JSFunction> function); |
// Installs interceptors on the instance. 'desc' is a function template, |