forked from facebook/hermes
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstep-for.js
More file actions
31 lines (28 loc) · 1006 Bytes
/
step-for.js
File metadata and controls
31 lines (28 loc) · 1006 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
/**
* Copyright (c) Facebook, Inc. and its affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*/
// RUN: %hdb < %s.debug %s | %FileCheck --match-full-lines %s
// REQUIRES: debugger
debugger;
for (var i = 0; i < 5; ++i) {
print('iteration', i);
}
// CHECK: Break on 'debugger' statement in global: {{.*}}:11:1
// CHECK-NEXT: Stepped to global: {{.*}}:12:12
// CHECK-NEXT: Stepped to global: {{.*}}:13:3
// CHECK-NEXT: iteration 0
// CHECK-NEXT: Stepped to global: {{.*}}:12:26
// CHECK-NEXT: Stepped to global: {{.*}}:13:3
// CHECK-NEXT: iteration 1
// CHECK-NEXT: Stepped to global: {{.*}}:12:26
// CHECK-NEXT: Stepped to global: {{.*}}:13:3
// CHECK-NEXT: iteration 2
// CHECK-NEXT: Stepped to global: {{.*}}:12:26
// CHECK-NEXT: Stepped to global: {{.*}}:13:3
// CHECK-NEXT: iteration 3
// CHECK-NEXT: Stepped to global: {{.*}}:12:26
// CHECK-NEXT: Stepped to global: {{.*}}:13:3
// CHECK-NEXT: iteration 4