From: Roman Reiss Date: Sat, 3 Oct 2015 11:44:58 +0000 (+0200) Subject: test: remove arguments.callee usage X-Git-Tag: v4.2.0~55 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=46876d519cfd4f4980e4956e8286ce48c9c220a5;p=platform%2Fupstream%2Fnodejs.git 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: https://github.com/nodejs/node/pull/3167 Reviewed-By: Sakthipriyan Vairamani Reviewed-By: Michaël Zasso Reviewed-By: Сковорода Никита Андреевич --- diff --git a/test/parallel/test-fs-utimes.js b/test/parallel/test-fs-utimes.js index a5ec0b2..49746bf 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)); } }