Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
jsc.exe --module-file should understand Windows paths
https://bugs.webkit.org/show_bug.cgi?id=241518 Reviewed by Yusuke Suzuki. jsc.cpp's module loader was written without any accommodation for Windows, so: 1. On Windows, recognize C:\foo as an absolute path and .\foo and ..\foo as dotted relative paths (allowing '/' too). 2. On all platforms, stop misusing the URL(base, relative) constructor. This isn't the way to add file:/// to an abspath. This ensures that module tests are able to run well on Windows. * Source/JavaScriptCore/jsc.cpp: (isAbsolutePath): Added. (isDottedRelativePath): Added. (absoluteFileURL): Renamed from `absolutePath`. (GlobalObject::moduleLoaderImportModule): (GlobalObject::moduleLoaderResolve): (JSC_DEFINE_HOST_FUNCTION): (computeFilePath): (runWithOptions): Canonical link: https://commits.webkit.org/251514@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@295509 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
Showing
1 changed file
with
47 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters