Skip to content
Permalink
Browse files

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.

PR-URL: #3167
Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Reviewed-By: Michaël Zasso <mic.besace@gmail.com>
Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com>
  • Loading branch information...
silverwind authored and jasnell committed Oct 3, 2015
1 parent 9d65528 commit 46876d519cfd4f4980e4956e8286ce48c9c220a5
Showing with 2 additions and 2 deletions.
  1. +2 −2 test/parallel/test-fs-utimes.js
@@ -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));
}
}

@@ -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));
}
}

0 comments on commit 46876d5

Please sign in to comment.
You can’t perform that action at this time.