~ubuntu-branches/ubuntu/vivid/nodejs/vivid

« back to all changes in this revision

Viewing changes to deps/v8/src/d8-debug.cc

  • Committer: Package Import Robot
  • Author(s): Jérémy Lal
  • Date: 2013-08-14 00:16:46 UTC
  • mfrom: (7.1.40 sid)
  • Revision ID: package-import@ubuntu.com-20130814001646-bzlysfh8sd6mukbo
Tags: 0.10.15~dfsg1-4
* Update 2005 patch, adding a handful of tests that can fail on
  slow platforms.
* Add 1004 patch to fix test failures when writing NaN to buffer
  on mipsel.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
// Copyright 2008 the V8 project authors. All rights reserved.
 
1
// Copyright 2012 the V8 project authors. All rights reserved.
2
2
// Redistribution and use in source and binary forms, with or without
3
3
// modification, are permitted provided that the following conditions are
4
4
// met:
25
25
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
26
26
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27
27
 
 
28
#ifdef ENABLE_DEBUGGER_SUPPORT
28
29
 
29
30
#include "d8.h"
30
31
#include "d8-debug.h"
168
169
  bool ok;
169
170
 
170
171
  // Make sure that socket support is initialized.
171
 
  ok = i::Socket::Setup();
 
172
  ok = i::Socket::SetUp();
172
173
  if (!ok) {
173
174
    printf("Unable to initialize socket support %d\n", i::Socket::LastError());
174
175
    return;
309
310
  Handle<Value> request =
310
311
      Shell::DebugCommandToJSONRequest(String::New(command));
311
312
  if (try_catch.HasCaught()) {
312
 
    v8::String::Utf8Value exception(try_catch.Exception());
313
 
    const char* exception_string = Shell::ToCString(exception);
314
 
    printf("%s\n", exception_string);
 
313
    Shell::ReportException(&try_catch);
315
314
    PrintPrompt();
316
315
    return;
317
316
  }
367
366
 
368
367
 
369
368
}  // namespace v8
 
369
 
 
370
#endif  // ENABLE_DEBUGGER_SUPPORT