Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
test: remove arguments.callee usage
arguments.callee is forbidden in strict mode and the fact that it's
being used masked a possible error in this test.
  • Loading branch information
silverwind committed Oct 3, 2015
commit 2b7be4653838440b595fb16c88c6fcce29dca40e
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