-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: adds support for 1:many source maps (bcoe#238)
Adds support for 1:many source-maps. These source maps are used by tools like rollup or WebPack to bundle multiple JavaScript source files into one. Refs: istanbuljs/v8-to-istanbul#102
- Loading branch information
Showing
13 changed files
with
190 additions
and
7 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
const branch = require('./branch-2') | ||
|
||
if (false) { | ||
console.info('unreachable') | ||
} else if (true) { | ||
console.info('reachable') | ||
} else { | ||
console.info('unreachable') | ||
} | ||
|
||
branch(true) | ||
branch(false) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
module.exports = function branch (a) { | ||
if (a) { | ||
console.info('a = true') | ||
} else if (undefined) { | ||
console.info('unreachable') | ||
} else { | ||
console.info('a = false') | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
const Foo = require('./class-2') | ||
|
||
const a = new Foo(0) | ||
const b = new Foo(33) | ||
a.methodA() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
module.exports = class Foo { | ||
constructor (x=33) { | ||
this.x = x ? x : 99 | ||
if (this.x) { | ||
console.info('covered') | ||
} else { | ||
console.info('uncovered') | ||
} | ||
this.methodC() | ||
} | ||
methodA () { | ||
console.info('covered') | ||
} | ||
methodB () { | ||
console.info('uncovered') | ||
} | ||
methodC () { | ||
console.info('covered') | ||
} | ||
methodD () { | ||
console.info('uncovered') | ||
} | ||
} |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters