OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 Debug = debug.Debug; |
| 6 |
| 7 Debug.setListener(function() {}); |
| 8 |
| 9 function factory() { |
| 10 return function* generator() { |
| 11 debugger; |
| 12 yield 42; |
| 13 } |
| 14 } |
| 15 |
| 16 Debug.setBreakPoint(function(){}, 0, 0); |
| 17 var generator = factory(); |
| 18 var obj = generator(); |
| 19 obj.next(); |
| 20 Debug.setBreakPoint(factory, 0, 0); |
| 21 obj.next(); |
OLD | NEW |