summaryrefslogtreecommitdiff
path: root/deps/v8/test/mjsunit/debug-evaluate-locals-optimized.js
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2012-01-06 13:03:06 -0800
committerRyan Dahl <ry@tinyclouds.org>2012-01-06 13:03:06 -0800
commit8e5674fb5cb31fd872b9b74fde0430603806a48a (patch)
tree3e51952c9d42078a2fef42b428f2996ce6b5d085 /deps/v8/test/mjsunit/debug-evaluate-locals-optimized.js
parent42281124d4b83b0e99baf5d56b696ef242399f51 (diff)
downloadnode-8e5674fb5cb31fd872b9b74fde0430603806a48a.tar.gz
Upgrade V8 to 3.8.5
Diffstat (limited to 'deps/v8/test/mjsunit/debug-evaluate-locals-optimized.js')
-rw-r--r--deps/v8/test/mjsunit/debug-evaluate-locals-optimized.js12
1 files changed, 7 insertions, 5 deletions
diff --git a/deps/v8/test/mjsunit/debug-evaluate-locals-optimized.js b/deps/v8/test/mjsunit/debug-evaluate-locals-optimized.js
index 683c139d8..c3cd5eb2e 100644
--- a/deps/v8/test/mjsunit/debug-evaluate-locals-optimized.js
+++ b/deps/v8/test/mjsunit/debug-evaluate-locals-optimized.js
@@ -50,10 +50,12 @@ function listener(event, exec_state, event_data, data) {
var expected_y = (i + 1) * 2 + 2;
// All frames except the bottom one has normal variables a and b.
- assertEquals('a', frame.localName(0));
- assertEquals('b', frame.localName(1));
- assertEquals(expected_a, frame.localValue(0).value());
- assertEquals(expected_b, frame.localValue(1).value());
+ var a = ('a' === frame.localName(0)) ? 0 : 1;
+ var b = 1 - a;
+ assertEquals('a', frame.localName(a));
+ assertEquals('b', frame.localName(b));
+ assertEquals(expected_a, frame.localValue(a).value());
+ assertEquals(expected_b, frame.localValue(b).value());
// All frames except the bottom one has arguments variables x and y.
assertEquals('x', frame.argumentName(0));
@@ -119,7 +121,7 @@ function listener(event, exec_state, event_data, data) {
listenerComplete = true;
}
} catch (e) {
- exception = e
+ exception = e.stack;
};
};