Index: src/d8.cc |
=================================================================== |
--- src/d8.cc (revision 1649) |
+++ src/d8.cc (working copy) |
@@ -344,9 +344,7 @@ |
global_template->Set(String::New("version"), FunctionTemplate::New(Version)); |
Handle<ObjectTemplate> os_templ = ObjectTemplate::New(); |
- os_templ->Set(String::New("system"), FunctionTemplate::New(System)); |
- os_templ->Set(String::New("chdir"), FunctionTemplate::New(ChangeDirectory)); |
- os_templ->Set(String::New("setenv"), FunctionTemplate::New(SetEnvironment)); |
+ AddOSMethods(os_templ); |
global_template->Set(String::New("os"), os_templ); |
utility_context_ = Context::New(NULL, global_template); |