API: added warning about FunctionTemplate::GetFunction lifetime.
Review URL: http://codereview.chromium.org/251042 git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@2992 ce2b1a6d-e550-0410-aec6-3dcde31c8c00
This commit is contained in:
parent
70821329a5
commit
260c39270f
@ -1574,7 +1574,10 @@ typedef bool (*IndexedSecurityCallback)(Local<Object> host,
|
||||
/**
|
||||
* A FunctionTemplate is used to create functions at runtime. There
|
||||
* can only be one function created from a FunctionTemplate in a
|
||||
* context.
|
||||
* context. The lifetime of the created function is equal to the
|
||||
* lifetime of the context. So in case the embedder needs to create
|
||||
* temporary functions that can be collected using Scripts is
|
||||
* preferred.
|
||||
*
|
||||
* A FunctionTemplate can have properties, these properties are added to the
|
||||
* function object when it is created.
|
||||
|
Loading…
Reference in New Issue
Block a user