Index: test/inspector/debugger/get-possible-breakpoints-master-test-expected.txt |
diff --git a/test/inspector/debugger/get-possible-breakpoints-master-test-expected.txt b/test/inspector/debugger/get-possible-breakpoints-master-test-expected.txt |
new file mode 100644 |
index 0000000000000000000000000000000000000000..34b92d91852fc246bf61ad792ee39ded9f95f84d |
--- /dev/null |
+++ b/test/inspector/debugger/get-possible-breakpoints-master-test-expected.txt |
@@ -0,0 +1,102 @@ |
+ |
+function test() { |
+ // for loops |
+ for (var i = #0; i #< 128; ++#i) { |
+ } |
+ for (var a #of #array) { |
+ } |
+ for (var a #of #[1,2,3]) { |
+ } |
+ for (var i = #boo1(); i #!= #boo2(); i #+= #boo3()) { |
+ } |
+ // switch |
+ #switch(val) { |
+ case 1: #break; |
+ case 2: #return; |
+ } |
+ #switch(#boo1()) { |
+ default: #break; |
+ } |
+ // nested functions |
+ function nested1() {#} |
+ function nested2() { #return 42; #} |
+ // arrow function + assignment |
+ var a = #() => #42#; |
+ // var |
+ var b1 = #2; |
+ var b2 = 1 #+ 2; |
+ var b3 = ++#b2; |
+ var b4 = #boo4() #+ #boo5(); |
+ // let |
+ let a1 = #1; |
+ let a2 = a1 #+ 2; |
+ let a3 = #boo3() #+ #boo4(); |
+ // const |
+ const c1 = #1; |
+ // while loops |
+ while (i #< #boo5()) { |
+ #boo6(); |
+ #break; |
+ } |
+ // continue |
+ while (#i) { |
+ #++i; |
+ #continue; |
+ } |
+ // debugger |
+ #debugger; |
+ // do |
+ do { |
+ #boo7(); |
+ } while(#boo5() #+ #boo6()); |
+ // try |
+ try { |
+ #throw #new Error(); |
+ } catch (e) { |
+ #boo2(); |
+ } finally { |
+ #boo1(); |
+ } |
+ // obj literal |
+ var obj = #{ |
+ prop: 2 |
+ }; |
+ // arrow functions |
+ #Promise.#resolve().#then(() => #42#) |
+ .#then(a => a#++#) |
+ .#then(a => #a()#) |
+ .#then(a => { #boo1(); #boo2(); #}); |
+ // classes |
+ #class Cat { |
+ constructor(name) { |
+ #this.name = name; |
+ #} |
+ |
+ speak() { |
+ #} |
+ } |
+ #class Lion extends Cat { |
+ constructor(name) { |
+ #super(name); |
+ #} |
+ |
+ speak() { |
+ #super.#speak(); |
+ #} |
+ } |
+ // other expressions |
+ #obj.a.#b().c = obj.#a().b.#c(); |
+ 1 + 2; |
dgozman
2017/02/23 02:03:28
We don't have a location here? Interesting. Let's
kozy
2017/02/27 17:37:57
Looks like issue, stepping will break before 1 + 2
|
+ #({}).a = 42; |
+ #++a; |
+ #boo() + #foo(); |
+ // async await |
+ async function async1() { |
+ #await Promise.resolve().then(() => #42#); |
dgozman
2017/02/23 02:03:28
No locations before resolve and then?
kozy
2017/02/27 17:37:57
looks like issue too.
|
+ #await #async2(); |
+ #} |
+ async function async2() { |
+ #return 42; |
+ #} |
+#} |
+//# sourceURL=test.js |