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

mozilla / source-map / 554
89%
master: 89%

Build:
Build:
LAST BUILD BRANCH: wasm-sources
DEFAULT BRANCH: master
Ran 18 Jun 2019 07:15PM UTC
Jobs 4
Files 13
Run time 1min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

pending completion
554

Pull #392

travis-ci

web-flow
binary-search fixes:
- always use the NEEDLE as the first argument for the comparison function. Otherwise you get very nasty comparisons (which don't hurt, but are utterly useless) like these in *indexed maps* at least:
  watch for the compareValue/compareValue2 = **NaN** log lines below: this is due to a useless (due to way it was invoked!) call to `aCompare` at the end of binary-search.
  The log below is a heavily instrumented `originalPositionFor()` API test run which was failing for indexed maps.
  ```
originalPositionFor: { generatedLine: 2, generatedColumn: 3 }

# search round 1
binarySearch SECTIONS: { needle: { generatedLine: 2, generatedColumn: 3 },
  'section.generatedOffset': { generatedLine: 1, generatedColumn: 1 },
  compareCheck: 1,
  compareValue2: 3 }

# search round 2
binarySearch SECTIONS: { needle: { generatedLine: 2, generatedColumn: 3 },
  'section.generatedOffset': { generatedLine: 1, generatedColumn: 3 },
  compareCheck: 1,
  compareValue2: 1 }

# while loop round 1; always fails thanks to NaNs.
# That ain't no needle being fed to it!
binarySearch SECTIONS: { needle:
   { generatedOffset: { generatedLine: 1, generatedColumn: 3 },
     consumer:
      BasicSourceMapConsumer {
        _sourceLookupCache: Map {},
        _names: [Object],
        _sources: [Object],
        _absoluteSources: [Object],
        sourceRoot: null,
        sourcesContent: null,
        _mappings: 'AAAAA,CCCCC',
        _sourceMapURL: undefined,
        file: null,
        _computedColumnSpans: false,
        _mappingsPtr: 1114216,
        _wasm: [Object] } },
  'section.generatedOffset': { generatedLine: 1, generatedColumn: 1 },
  compareCheck: NaN,
  compareValue2: NaN }
binarySearch SECTIONS --> found @ index: { sectionIndex: 1,
  section:
   { generatedOffset: { generatedLine: 1, generatedColumn: 3 },
     consumer:
      BasicSourceMapConsumer {
        _sourceLookupCache: Map {},
        _names: [Object],
        _sources: [Object],
        _absol... (continued)
Pull Request #392: `originalPositionFor()` API fix for indexed maps: faster due to not executing a useless=buggy comparison near the end in binary search

462 of 544 branches covered (84.93%)

Branch coverage included in aggregate %.

2 of 2 new or added lines in 1 file covered. (100.0%)

824 of 911 relevant lines covered (90.45%)

654.47 hits per line

Jobs
ID Job ID Ran Files Coverage
1 554.1 18 Jun 2019 07:15PM UTC 0
88.38
Travis Job 554.1
2 554.2 18 Jun 2019 07:15PM UTC 0
88.38
Travis Job 554.2
3 554.3 18 Jun 2019 07:16PM UTC 0
88.38
Travis Job 554.3
4 554.4 18 Jun 2019 07:16PM UTC 0
88.38
Travis Job 554.4
Source Files on build 554
  • Tree
  • List 0
  • Changed 2
  • Source Changed 1
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Travis Build #554
  • Pull Request #392
  • PR Base - master (#550)
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

© 2025 Coveralls, Inc