OLD | NEW |
1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
| 5 // Flags: --harmony-object-observe |
5 // Flags: --allow-natives-syntax --expose-debug-as debug | 6 // Flags: --allow-natives-syntax --expose-debug-as debug |
6 | 7 |
7 Debug = debug.Debug | 8 Debug = debug.Debug |
8 var exception = null; | 9 var exception = null; |
9 var break_count = 0; | 10 var break_count = 0; |
10 var expected_breaks = -1; | 11 var expected_breaks = -1; |
11 | 12 |
12 function listener(event, exec_state, event_data, data) { | 13 function listener(event, exec_state, event_data, data) { |
13 try { | 14 try { |
14 if (event == Debug.DebugEvent.Break) { | 15 if (event == Debug.DebugEvent.Break) { |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 if (expected_breaks !== break_count) { | 93 if (expected_breaks !== break_count) { |
93 %AbortJS("FAIL: expected <" + expected_breaks + "> breaks instead of <" + | 94 %AbortJS("FAIL: expected <" + expected_breaks + "> breaks instead of <" + |
94 break_count + ">"); | 95 break_count + ">"); |
95 } | 96 } |
96 if (exception !== null) { | 97 if (exception !== null) { |
97 %AbortJS("FAIL: exception: " + exception); | 98 %AbortJS("FAIL: exception: " + exception); |
98 } | 99 } |
99 }); | 100 }); |
100 dummy.foo = 1; | 101 dummy.foo = 1; |
101 } | 102 } |
OLD | NEW |