• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

Siubaak / sval / 23899679562

02 Apr 2026 12:10PM UTC coverage: 80.63% (+0.1%) from 80.491%
23899679562

push

github

web-flow
Merge pull request #142 from Siubaak/claude/fix-issue-141-WmgEt

938 of 1099 branches covered (85.35%)

Branch coverage included in aggregate %.

25 of 31 new or added lines in 4 files covered. (80.65%)

24 existing lines in 2 files now uncovered.

2904 of 3666 relevant lines covered (79.21%)

972.44 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

80.0
/src/evaluate/program.ts
1
import * as acorn from 'acorn'
2
import Scope from '../scope/index.ts'
3
import { STRICT } from '../share/const.ts'
1✔
4
import evaluate from './index.ts'
1✔
5

6
export function* Program(program: acorn.Program, scope: Scope) {
1✔
7
  // Check for 'use strict' directive prologue
8
  for (let i = 0; i < program.body.length; i++) {
4✔
9
    const stmt = program.body[i]
4✔
10
    if (stmt.type === 'ExpressionStatement' && (stmt as any).directive) {
4!
NEW
11
      if ((stmt as any).directive === 'use strict' && !scope.find(STRICT)) {
×
NEW
12
        scope.const(STRICT, true)
×
NEW
13
      }
×
14
    } else {
4✔
15
      break
4✔
16
    }
4✔
17
  }
4✔
18

19
  for (let i = 0; i < program.body.length; i++) {
4✔
20
    yield* evaluate(program.body[i], scope)
20✔
21
  }
20✔
22
}
4✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc