Commit b2f95831 authored by Rene Saarsoo's avatar Rene Saarsoo
Browse files

Fix auto-detection of RegExp type in NodeJS.

When using NodeJS as the JS engine, the serialization of RegExp object
results in an empty Object/Hash not in nil as in therubyracer gem.
parent aba71287
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -39,7 +39,7 @@ module JsDuck
          throw "Unable to handle this MemberExpression"
        end
      when "Literal"
        if ast["value"] == nil && ast["raw"] =~ /\A\//
        if ast["raw"] =~ /\A\//
          :regexp
        else
          ast["value"]