Skip to content

Commit

Permalink
docs: move docs into docs/ folder
Browse files Browse the repository at this point in the history
* api: Function::New(source)
  • Loading branch information
indutny committed Mar 24, 2012
1 parent d3602c0 commit 745fa00
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion TODO
@@ -1,4 +1,3 @@
* Stack trace support (Source to code map)
* Cons strings
* On-stack replacement and profile-based optimizations (register allocation too)
* Incremental GC
Expand Down
File renamed without changes.
1 change: 1 addition & 0 deletions include/candor.h
Expand Up @@ -124,6 +124,7 @@ class Function : public Value {
const char* source,
uint32_t length);
static Function* New(const char* filename, const char* source);
static Function* New(const char* source);
static Function* New(BindingCallback callback);

Object* GetContext();
Expand Down
5 changes: 5 additions & 0 deletions src/api.cc
Expand Up @@ -286,6 +286,11 @@ Function* Function::New(const char* filename, const char* source) {
}


Function* Function::New(const char* source) {
return New(NULL, source);
}


Function* Function::New(BindingCallback callback) {
char* obj = HFunction::NewBinding(ISOLATE->heap,
*reinterpret_cast<char**>(&callback),
Expand Down

0 comments on commit 745fa00

Please sign in to comment.