From 342c3a1bbba78d50b3e8d6df662fceb8b72782c3 Mon Sep 17 00:00:00 2001 From: Roman Reiss Date: Sat, 3 Oct 2015 13:44:58 +0200 Subject: [PATCH] test: remove arguments.callee usage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit arguments.callee is forbidden in strict mode and the fact that it's being used masked a possible error in this test. PR-URL: https://github.com/nodejs/node/pull/3167 Reviewed-By: Sakthipriyan Vairamani Reviewed-By: Michaël Zasso Reviewed-By: Сковорода Никита Андреевич --- test/parallel/test-fs-utimes.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/parallel/test-fs-utimes.js b/test/parallel/test-fs-utimes.js index a5ec0b2c2e2f8f..49746bfbfb8bb5 100644 --- a/test/parallel/test-fs-utimes.js +++ b/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)); } }