Skip to content

Commit

Permalink
test: remove arguments.callee usage
Browse files Browse the repository at this point in the history
arguments.callee is forbidden in strict mode and the fact that it's
being used masked a possible error in this test.

PR-URL: #3167
Reviewed-By: Sakthipriyan Vairamani <[email protected]>
Reviewed-By: Michaël Zasso <[email protected]>
Reviewed-By: Сковорода Никита Андреевич <[email protected]>
  • Loading branch information
silverwind authored and jasnell committed Oct 8, 2015
1 parent 9d65528 commit 46876d5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/parallel/test-fs-utimes.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ function expect_errno(syscall, resource, err, errno) {
if (err && (err.code === errno || err.code === 'ENOSYS')) {
tests_ok++;
} else {
console.log('FAILED:', arguments.callee.name, util.inspect(arguments));
console.log('FAILED:', 'expect_errno', util.inspect(arguments));
}
}

Expand All @@ -39,7 +39,7 @@ function expect_ok(syscall, resource, err, atime, mtime) {
err && err.code === 'ENOSYS') {
tests_ok++;
} else {
console.log('FAILED:', arguments.callee.name, util.inspect(arguments));
console.log('FAILED:', 'expect_ok', util.inspect(arguments));
}
}

Expand Down

0 comments on commit 46876d5

Please sign in to comment.