Skip to content

Commit

Permalink
Fix some 'use strict' errors
Browse files Browse the repository at this point in the history
  • Loading branch information
isaacs committed Jul 2, 2015
1 parent bf3381e commit 957fd93
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion sync.js
Expand Up @@ -57,7 +57,7 @@ GlobSync.prototype._finish = function () {
for (var p in matchset) {
try {
p = self._makeAbs(p)
var real = fs.realpathSync(p, this.realpathCache)
var real = fs.realpathSync(p, self.realpathCache)
set[real] = true
} catch (er) {
if (er.syscall === 'stat')
Expand Down
4 changes: 2 additions & 2 deletions test/00-setup.js
Expand Up @@ -37,7 +37,7 @@ files.forEach(function (f) {
tap.test(f, function (t) {
f = path.resolve(fixtureDir, f)
var d = path.dirname(f)
mkdirp(d, 0755, function (er) {
mkdirp(d, '0755', function (er) {
if (er) {
t.fail(er)
return t.bailout()
Expand All @@ -53,7 +53,7 @@ files.forEach(function (f) {
if (process.platform !== "win32") {
tap.test("symlinky", function (t) {
var d = path.dirname(symlinkTo)
mkdirp(d, 0755, function (er) {
mkdirp(d, '0755', function (er) {
if (er)
throw er
fs.symlinkSync(symlinkFrom, symlinkTo, "dir")
Expand Down

0 comments on commit 957fd93

Please sign in to comment.