Skip to content

Commit

Permalink
Remove unused c8 ignores
Browse files Browse the repository at this point in the history
Closes GH-2251.

Reviewed-by: Christian Murphy <christian.murphy.42@gmail.com>
  • Loading branch information
wooorm committed Feb 9, 2023
1 parent 8f85b30 commit d0a65fc
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 11 deletions.
6 changes: 1 addition & 5 deletions packages/esbuild/lib/index.js
Expand Up @@ -119,9 +119,7 @@ export function esbuild(options) {
namespace: 'file',
pluginData: {contents}
})
: // V8 on Erbium.
/* c8 ignore next 2 */
{contents, loader: 'js', resolveDir: p.cwd()}
: {contents, loader: 'js', resolveDir: p.cwd()}
}

/**
Expand Down Expand Up @@ -226,8 +224,6 @@ export function esbuild(options) {
// Safety check: the file has a path, so there has to be a `dirname`.
assert(file.dirname, 'expected `dirname` to be defined')

// V8 on Erbium.
/* c8 ignore next 9 */
return {
contents: value || '',
errors,
Expand Down
2 changes: 0 additions & 2 deletions packages/mdx/lib/evaluate.js
Expand Up @@ -21,8 +21,6 @@ import {resolveEvaluateOptions} from './util/resolve-evaluate-options.js'
*/
export async function evaluate(vfileCompatible, evaluateOptions) {
const {compiletime, runtime} = resolveEvaluateOptions(evaluateOptions)
// V8 on Erbium.
/* c8 ignore next 2 */
return run(await compile(vfileCompatible, compiletime), runtime)
}

Expand Down
2 changes: 0 additions & 2 deletions packages/mdx/lib/run.js
Expand Up @@ -12,8 +12,6 @@ const AsyncFunction = Object.getPrototypeOf(run).constructor
* Anthing.
*/
export async function run(file, options) {
// V8 on Erbium.
/* c8 ignore next 2 */
return new AsyncFunction(String(file))(options)
}

Expand Down
2 changes: 0 additions & 2 deletions packages/rollup/lib/index.js
Expand Up @@ -56,8 +56,6 @@ export function rollup(options) {
// @ts-expect-error: a) `undefined` is fine, b) `sourceRoot: undefined` is fine too.
const result = {code, map: compiled.map}
return result
// V8 on Erbium.
/* c8 ignore next 2 */
}
}
}
Expand Down

1 comment on commit d0a65fc

@vercel
Copy link

@vercel vercel bot commented on d0a65fc Feb 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

mdx – ./

mdx-mdx.vercel.app
v2.mdxjs.com
mdx-git-main-mdx.vercel.app
mdxjs.com

Please sign in to comment.