summaryrefslogtreecommitdiff
path: root/deps/v8/src/debug-debugger.js
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2010-09-22 11:14:58 -0700
committerRyan Dahl <ry@tinyclouds.org>2010-09-22 19:20:06 -0700
commit4df999f85f2cb7ac687d3281af012d9df9699657 (patch)
treefebaced149ed8843bdbe3f3a8759fdf137c809ec /deps/v8/src/debug-debugger.js
parent893ebe72305ea599c32c99e3ca4fda050ae7c983 (diff)
downloadnode-new-4df999f85f2cb7ac687d3281af012d9df9699657.tar.gz
Revert "Upgrade V8 to 2.4.5"
This reverts commit e2274412488ab310decb8494ab41009342b3c2f6. Build fails on mac
Diffstat (limited to 'deps/v8/src/debug-debugger.js')
-rw-r--r--deps/v8/src/debug-debugger.js36
1 files changed, 4 insertions, 32 deletions
diff --git a/deps/v8/src/debug-debugger.js b/deps/v8/src/debug-debugger.js
index 34eb0f0ec5..0b02e2102a 100644
--- a/deps/v8/src/debug-debugger.js
+++ b/deps/v8/src/debug-debugger.js
@@ -45,7 +45,7 @@ Debug.DebugEvent = { Break: 1,
ScriptCollected: 6 };
// Types of exceptions that can be broken upon.
-Debug.ExceptionBreak = { Caught : 0,
+Debug.ExceptionBreak = { All : 0,
Uncaught: 1 };
// The different types of steps.
@@ -87,27 +87,7 @@ var debugger_flags = {
this.value = !!value;
%SetDisableBreak(!this.value);
}
- },
- breakOnCaughtException: {
- getValue: function() { return Debug.isBreakOnException(); },
- setValue: function(value) {
- if (value) {
- Debug.setBreakOnException();
- } else {
- Debug.clearBreakOnException();
- }
- }
- },
- breakOnUncaughtException: {
- getValue: function() { return Debug.isBreakOnUncaughtException(); },
- setValue: function(value) {
- if (value) {
- Debug.setBreakOnUncaughtException();
- } else {
- Debug.clearBreakOnUncaughtException();
- }
- }
- },
+ }
};
@@ -801,15 +781,11 @@ Debug.clearStepping = function() {
}
Debug.setBreakOnException = function() {
- return %ChangeBreakOnException(Debug.ExceptionBreak.Caught, true);
+ return %ChangeBreakOnException(Debug.ExceptionBreak.All, true);
};
Debug.clearBreakOnException = function() {
- return %ChangeBreakOnException(Debug.ExceptionBreak.Caught, false);
-};
-
-Debug.isBreakOnException = function() {
- return !!%IsBreakOnException(Debug.ExceptionBreak.Caught);
+ return %ChangeBreakOnException(Debug.ExceptionBreak.All, false);
};
Debug.setBreakOnUncaughtException = function() {
@@ -820,10 +796,6 @@ Debug.clearBreakOnUncaughtException = function() {
return %ChangeBreakOnException(Debug.ExceptionBreak.Uncaught, false);
};
-Debug.isBreakOnUncaughtException = function() {
- return !!%IsBreakOnException(Debug.ExceptionBreak.Uncaught);
-};
-
Debug.showBreakPoints = function(f, full) {
if (!IS_FUNCTION(f)) throw new Error('Parameters have wrong types.');
var source = full ? this.scriptSource(f) : this.source(f);