• Adam Klein's avatar
    [d8] Always pass filename through NormalizePath for dynamic imports · a36354c2
    Adam Klein authored
    d8's fragile path manipulation code requires that backslashes are
    replaced with slashes before further processing. NormalizePath() is
    the function that does this, and it's called in almost all the
    required cases. But because of Clusterfuzz runs tests with
    an absolute URL on the commandline, there was one case that
    slipped through. This patch closes that gap.
    
    No test added since this only reproduces under Clusterfuzz, not
    in running mjsunit tests.
    
    Bug: chromium:784012
    Change-Id: Ie699e93ff1acb79edfe25ce59d576e9f7bd8c022
    Reviewed-on: https://chromium-review.googlesource.com/912325Reviewed-by: 's avatarSathya Gunasekaran <gsathya@chromium.org>
    Commit-Queue: Adam Klein <adamk@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#51224}
    a36354c2
d8.cc 120 KB