Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(336)

Side by Side Diff: src/d8-posix.cc

Issue 91503002: Mark deprecated APIs with relatively little use as deprecated (Closed) Base URL: https://v8.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/d8.cc ('k') | src/extensions/externalize-string-extension.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2009 the V8 project authors. All rights reserved. 1 // Copyright 2009 the V8 project authors. All rights reserved.
2 // Redistribution and use in source and binary forms, with or without 2 // Redistribution and use in source and binary forms, with or without
3 // modification, are permitted provided that the following conditions are 3 // modification, are permitted provided that the following conditions are
4 // met: 4 // met:
5 // 5 //
6 // * Redistributions of source code must retain the above copyright 6 // * Redistributions of source code must retain the above copyright
7 // notice, this list of conditions and the following disclaimer. 7 // notice, this list of conditions and the following disclaimer.
8 // * Redistributions in binary form must reproduce the above 8 // * Redistributions in binary form must reproduce the above
9 // copyright notice, this list of conditions and the following 9 // copyright notice, this list of conditions and the following
10 // disclaimer in the documentation and/or other materials provided 10 // disclaimer in the documentation and/or other materials provided
(...skipping 452 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 if (!GetTimeouts(args, &read_timeout, &total_timeout)) return; 463 if (!GetTimeouts(args, &read_timeout, &total_timeout)) return;
464 Handle<Array> command_args; 464 Handle<Array> command_args;
465 if (args.Length() > 1) { 465 if (args.Length() > 1) {
466 if (!args[1]->IsArray()) { 466 if (!args[1]->IsArray()) {
467 args.GetIsolate()->ThrowException(String::NewFromUtf8( 467 args.GetIsolate()->ThrowException(String::NewFromUtf8(
468 args.GetIsolate(), "system: Argument 2 must be an array")); 468 args.GetIsolate(), "system: Argument 2 must be an array"));
469 return; 469 return;
470 } 470 }
471 command_args = Handle<Array>::Cast(args[1]); 471 command_args = Handle<Array>::Cast(args[1]);
472 } else { 472 } else {
473 command_args = Array::New(0); 473 command_args = Array::New(args.GetIsolate(), 0);
474 } 474 }
475 if (command_args->Length() > ExecArgs::kMaxArgs) { 475 if (command_args->Length() > ExecArgs::kMaxArgs) {
476 args.GetIsolate()->ThrowException(String::NewFromUtf8( 476 args.GetIsolate()->ThrowException(String::NewFromUtf8(
477 args.GetIsolate(), "Too many arguments to system()")); 477 args.GetIsolate(), "Too many arguments to system()"));
478 return; 478 return;
479 } 479 }
480 if (args.Length() < 1) { 480 if (args.Length() < 1) {
481 args.GetIsolate()->ThrowException(String::NewFromUtf8( 481 args.GetIsolate()->ThrowException(String::NewFromUtf8(
482 args.GetIsolate(), "Too few arguments to system()")); 482 args.GetIsolate(), "Too few arguments to system()"));
483 return; 483 return;
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
732 FunctionTemplate::New(UnsetEnvironment)); 732 FunctionTemplate::New(UnsetEnvironment));
733 os_templ->Set(String::NewFromUtf8(isolate, "umask"), 733 os_templ->Set(String::NewFromUtf8(isolate, "umask"),
734 FunctionTemplate::New(SetUMask)); 734 FunctionTemplate::New(SetUMask));
735 os_templ->Set(String::NewFromUtf8(isolate, "mkdirp"), 735 os_templ->Set(String::NewFromUtf8(isolate, "mkdirp"),
736 FunctionTemplate::New(MakeDirectory)); 736 FunctionTemplate::New(MakeDirectory));
737 os_templ->Set(String::NewFromUtf8(isolate, "rmdir"), 737 os_templ->Set(String::NewFromUtf8(isolate, "rmdir"),
738 FunctionTemplate::New(RemoveDirectory)); 738 FunctionTemplate::New(RemoveDirectory));
739 } 739 }
740 740
741 } // namespace v8 741 } // namespace v8
OLDNEW
« no previous file with comments | « src/d8.cc ('k') | src/extensions/externalize-string-extension.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698