mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-11 09:26:15 +02:00
fcl-js: fixed compilation
git-svn-id: trunk@40099 -
This commit is contained in:
parent
bbb5943fef
commit
7afd157d35
@ -51,7 +51,6 @@ uses
|
|||||||
|
|
||||||
const
|
const
|
||||||
Base64Chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
|
Base64Chars = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/';
|
||||||
DefaultSrcMapHeader = ')]}'''+LineEnding;
|
|
||||||
|
|
||||||
type
|
type
|
||||||
EJSSourceMap = class(Exception);
|
EJSSourceMap = class(Exception);
|
||||||
@ -167,6 +166,8 @@ type
|
|||||||
property Sorted: boolean read FSorted write SetSorted; // Segments are sorted for GeneratedLine/Col
|
property Sorted: boolean read FSorted write SetSorted; // Segments are sorted for GeneratedLine/Col
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
function DefaultSrcMapHeader: string;
|
||||||
|
|
||||||
function EncodeBase64VLQ(i: NativeInt): String; // base64 Variable Length Quantity
|
function EncodeBase64VLQ(i: NativeInt): String; // base64 Variable Length Quantity
|
||||||
function DecodeBase64VLQ(const s: string): NativeInt; // base64 Variable Length Quantity
|
function DecodeBase64VLQ(const s: string): NativeInt; // base64 Variable Length Quantity
|
||||||
function DecodeBase64VLQ(
|
function DecodeBase64VLQ(
|
||||||
@ -180,6 +181,11 @@ procedure DebugSrcMapLine(GeneratedLine: integer; var GeneratedLineSrc: String;
|
|||||||
|
|
||||||
implementation
|
implementation
|
||||||
|
|
||||||
|
function DefaultSrcMapHeader: string;
|
||||||
|
begin
|
||||||
|
Result:=')]}'''+LineEnding;
|
||||||
|
end;
|
||||||
|
|
||||||
function EncodeBase64VLQ(i: NativeInt): String;
|
function EncodeBase64VLQ(i: NativeInt): String;
|
||||||
{ Convert signed number to base64-VLQ:
|
{ Convert signed number to base64-VLQ:
|
||||||
Each base64 has 6bit, where the most significant bit is the continuation bit
|
Each base64 has 6bit, where the most significant bit is the continuation bit
|
||||||
|
Loading…
Reference in New Issue
Block a user