[packages/v8] patching against 3.15.11.18

glen glen at pld-linux.org
Sat Oct 17 22:04:09 CEST 2015


commit 196df260350442c66ec5a0285b91318b51b6c497
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Sat Oct 17 22:43:00 2015 +0300

    patching against 3.15.11.18

 abort-uncaught-exception.patch | 29 ++++++++++-------------------
 1 file changed, 10 insertions(+), 19 deletions(-)
---
diff --git a/abort-uncaught-exception.patch b/abort-uncaught-exception.patch
index 7732b48..606246b 100644
--- a/abort-uncaught-exception.patch
+++ b/abort-uncaught-exception.patch
@@ -57,29 +57,19 @@ index 96d564f..4b1aa67 100644
  
  void Isolate::Exit() {
    i::Isolate* isolate = reinterpret_cast<i::Isolate*>(this);
-diff --git a/src/isolate.cc b/src/isolate.cc
-index 5a5293e..0b38616 100644
---- a/src/isolate.cc
-+++ b/src/isolate.cc
-@@ -1152,18 +1152,26 @@ void Isolate::DoThrow(Object* exception, MessageLocation* location) {
+--- v8-3.15.11.18/src/isolate.cc	2013-05-07 21:00:06.000000000 +0300
++++ v8-3.15.11.18/src/isolate.cc	2015-10-17 22:30:21.746915216 +0300
+@@ -1250,6 +1250,28 @@
+         thread_local_top()->pending_message_start_pos_ = location->start_pos();
          thread_local_top()->pending_message_end_pos_ = location->end_pos();
        }
- 
--      // If the abort-on-uncaught-exception flag is specified, abort on any
--      // exception not caught by JavaScript, even when an external handler is
--      // present.  This flag is intended for use by JavaScript developers, so
--      // print a user-friendly stack trace (not an internal one).
++
 +      // If the abort-on-uncaught-exception flag is specified, and if the
 +      // exception is not caught by JavaScript (even when an external handler is
 +      // present).
-       if (fatal_exception_depth == 0 &&
-           FLAG_abort_on_uncaught_exception &&
-           (report_exception || can_be_caught_externally)) {
--        fatal_exception_depth++;
--        fprintf(stderr, "%s\n\nFROM\n",
--          *MessageHandler::GetLocalizedMessage(message_obj));
--        PrintCurrentStackTrace(stderr);
--        OS::Abort();
++      if (fatal_exception_depth == 0 &&
++          FLAG_abort_on_uncaught_exception &&
++          (report_exception || can_be_caught_externally)) {
 +        // If the embedder didn't specify a custom uncaught exception callback,
 +        // or if the custom callback determined that V8 should abort, then
 +        // abort
@@ -94,9 +84,10 @@ index 5a5293e..0b38616 100644
 +          PrintCurrentStackTrace(stderr);
 +          OS::Abort();
 +        }
-       }
++      }
      } else if (location != NULL && !location->script().is_null()) {
        // We are bootstrapping and caught an error where the location is set
+       // and we have a script for the location.
 @@ -1339,6 +1347,10 @@ void Isolate::SetCaptureStackTraceForUncaughtExceptions(
    stack_trace_for_uncaught_exceptions_options_ = options;
  }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/v8.git/commitdiff/ac44effdf7cf04f08d63d3df0dba54a6b05a4563



More information about the pld-cvs-commit mailing list