Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fuzz range branch #21

Open
wants to merge 21 commits into
base: master
from
Open
Changes from 1 commit
Commits
File filter...
Filter file types
Jump to…
Jump to file
Failed to load files.

Always

Just for now

path: Remove unused error acceptor

  • Loading branch information
bookmoons committed Nov 9, 2019
commit 32ec7a44dbb5bb5a3aff61a77b4632962b1aab4c
@@ -2,28 +2,15 @@ const path = require('path')

async function fuzz (bytes) {
const string = String.fromCodePoint(...bytes)
try {
path.basename(string)
path.dirname(string)
path.extname(string)
path.isAbsolute(string)
path.join(string)
path.normalize(string)
path.parse(string)
path.resolve(string)
path.toNamespacedPath(string)
} catch (error) {
if (!acceptable(error)) throw error
}
path.basename(string)
path.dirname(string)
path.extname(string)
path.isAbsolute(string)
path.join(string)
path.normalize(string)
path.parse(string)
path.resolve(string)
path.toNamespacedPath(string)
}

function acceptable (error) {
return !!expected
.find(message => error.message.startsWith(message))
}

const expected = [

]

exports.fuzz = fuzz
ProTip! Use n and p to navigate between commits in a pull request.
You can’t perform that action at this time.