Skip to content
This repository has been archived by the owner on Jan 15, 2021. It is now read-only.

test-fs-realpath is broken on iOS #68

Open
enricogior opened this issue Oct 24, 2016 · 0 comments
Open

test-fs-realpath is broken on iOS #68

enricogior opened this issue Oct 24, 2016 · 0 comments
Assignees
Labels

Comments

@enricogior
Copy link
Member

enricogior commented Oct 24, 2016

There are two places where test/simple/test-fs-realpath.js doesn't work on iOS:

The fix consists in changing line 257:

var entry = common.tmpDir.substr(entrydir.length + 1) + '/cycles/realpath-3a';

to:

  var entry;
  if (entrydir.charAt(0) === '.') {
    entry = common.tmpDir.substr(entrydir.length + 1);
  } else {
    entry = common.tmpDir;
  }
  entry += '/cycles/realpath-3a';

Same type of fix for line 349:

  var entry;
  if (entrydir.charAt(0) === '.') {
    entry = tmpAbsDir.substr(entrydir.length + 1);
  } else {
    entry = tmpAbsDir;
  }
  entry += '/cycles/root.js';
@enricogior enricogior self-assigned this Oct 24, 2016
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant