Searched refs:os_templ (Results 1 – 3 of 3) sorted by relevance
684 void Shell::AddOSMethods(Handle<ObjectTemplate> os_templ) { in AddOSMethods() argument685 os_templ->Set(String::New("system"), FunctionTemplate::New(System)); in AddOSMethods()686 os_templ->Set(String::New("chdir"), FunctionTemplate::New(ChangeDirectory)); in AddOSMethods()687 os_templ->Set(String::New("setenv"), FunctionTemplate::New(SetEnvironment)); in AddOSMethods()688 os_templ->Set(String::New("unsetenv"), in AddOSMethods()690 os_templ->Set(String::New("umask"), FunctionTemplate::New(SetUMask)); in AddOSMethods()691 os_templ->Set(String::New("mkdirp"), FunctionTemplate::New(MakeDirectory)); in AddOSMethods()692 os_templ->Set(String::New("rmdir"), FunctionTemplate::New(RemoveDirectory)); in AddOSMethods()
38 void Shell::AddOSMethods(Handle<ObjectTemplate> os_templ) { in AddOSMethods() argument
436 Handle<ObjectTemplate> os_templ = ObjectTemplate::New(); in Initialize() local437 AddOSMethods(os_templ); in Initialize()438 global_template->Set(String::New("os"), os_templ); in Initialize()