Skip to content
This repository has been archived by the owner on Jun 2, 2022. It is now read-only.

Commit

Permalink
Merge pull request #111 from snyk/snyk-fix-93368b07b9de27f1dbf0560f8b…
Browse files Browse the repository at this point in the history
…a14c21

[Snyk] Security upgrade acorn from 5.7.1 to 5.7.4
  • Loading branch information
shaimendel committed Apr 26, 2020
2 parents a502cbb + 4b5269a commit ade9436
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -43,7 +43,7 @@
"tap": "^14.6.1"
},
"dependencies": {
"acorn": "5.7.1",
"acorn": "5.7.4",
"debug": "^4.1.1",
"needle": "^2.4.0",
"semver": "^6.3.0",
Expand Down
6 changes: 4 additions & 2 deletions test/method-detection.test.js
Expand Up @@ -27,15 +27,17 @@ test('test bootstrap +function method detection', function (t) {
test('test clashing variable/function declaration', function (t) {
const contents = `
var foo;
function foo() {
{
function foo() {
}
}
`;
const methods = ['foo'];
const found = ast.findAllVulnerableFunctionsInScript(
contents, methods,
);
t.same(sorted(Object.keys(found)), sorted(methods));
t.equal(found[methods[0]].start.line, 3, 'foo');
t.equal(found[methods[0]].start.line, 4, 'foo');
t.end();
});

Expand Down

0 comments on commit ade9436

Please sign in to comment.