Skip to content

Commit

Permalink
packager: GlobalTransformCache: fix non-bound function
Browse files Browse the repository at this point in the history
Reviewed By: cpojer

Differential Revision: D4972905

fbshipit-source-id: c9aaaba47f2c74bf48b7cbbc1255992d36ae32b1
  • Loading branch information
Jean Lauliac authored and facebook-github-bot committed Apr 28, 2017
1 parent 58ba7fc commit fddb3b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packager/src/lib/GlobalTransformCache.js
Original file line number Diff line number Diff line change
Expand Up @@ -408,8 +408,9 @@ class OptionsHasher {
}

relativizeFilePaths(filePaths: Array<string>): Array<string> {
return filePaths.map(this.relativizeFilePath);
return filePaths.map(this.relativizeFilePath.bind(this));
}

relativizeFilePath(filePath: string): string {
return path.relative(this._rootPath, filePath);
}
Expand Down

0 comments on commit fddb3b0

Please sign in to comment.