Skip to content

Commit 46876d5

Browse files
silverwindjasnell
authored andcommitted
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 <[email protected]> Reviewed-By: Michaël Zasso <[email protected]> Reviewed-By: Сковорода Никита Андреевич <[email protected]>
1 parent 9d65528 commit 46876d5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/parallel/test-fs-utimes.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ function expect_errno(syscall, resource, err, errno) {
3030
if (err && (err.code === errno || err.code === 'ENOSYS')) {
3131
tests_ok++;
3232
} else {
33-
console.log('FAILED:', arguments.callee.name, util.inspect(arguments));
33+
console.log('FAILED:', 'expect_errno', util.inspect(arguments));
3434
}
3535
}
3636

@@ -39,7 +39,7 @@ function expect_ok(syscall, resource, err, atime, mtime) {
3939
err && err.code === 'ENOSYS') {
4040
tests_ok++;
4141
} else {
42-
console.log('FAILED:', arguments.callee.name, util.inspect(arguments));
42+
console.log('FAILED:', 'expect_ok', util.inspect(arguments));
4343
}
4444
}
4545

0 commit comments

Comments
 (0)