Skip to content

Commit

Permalink
Use safe cast for fsReadDirSync impl to try to fix #664
Browse files Browse the repository at this point in the history
Again, without a repo, I can't be 100% sure this is the root cause, but using a safe cast may very well fix the problem. It shouldn't make anything more broken at least.
  • Loading branch information
mjbvz committed Mar 16, 2016
1 parent e5e2e1f commit df2e33a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -341,8 +341,8 @@ private static IAnalysisSet FsBasename(FunctionValue func, Node node, AnalysisUn
}

private static IAnalysisSet FsReadDirSync(FunctionValue func, Node node, AnalysisUnit unit, IAnalysisSet @this, IAnalysisSet[] args) {
CallNode call = (CallNode)node;
if (call.Arguments.Length == 1) {
var call = node as CallNode;
if (call != null && call.Arguments.Length == 1) {
var ee = new ExpressionEvaluator(unit);
IAnalysisSet arraySet;
ReadDirSyncArrayValue array;
Expand Down

0 comments on commit df2e33a

Please sign in to comment.