Browse Source

pastojs: source map: prepend absolute source files with file://

git-svn-id: trunk@42866 -
Mattias Gaertner 6 years ago
parent
commit
022c4dded2
2 changed files with 2 additions and 1 deletions
  1. 2 0
      packages/pastojs/src/pas2jscompiler.pp
  2. 0 1
      utils/pas2js/fpmake.pp

+ 2 - 0
packages/pastojs/src/pas2jscompiler.pp

@@ -2273,6 +2273,8 @@ begin
         MapFilename:=LocalFilename;
       end;
     end;
+    if FilenameIsAbsolute(MapFilename) then
+      MapFilename:='file://'+MapFilename;
     {$IFNDEF Unix}
     // use / as PathDelim
     if PathDelim<>'/' then

+ 0 - 1
utils/pas2js/fpmake.pp

@@ -15,7 +15,6 @@ begin
   With Installer do
     begin
     P:=AddPackage('utils-pas2js');
-    P.ShortName := 'upjs';
 
     P.Author := 'Free Pascal Team';
     P.License := 'LGPL with modification';