|
@@ -297,10 +297,10 @@ type
|
|
procedure InvokeJS_RaiseResultMismatchStr(const aName: string; const Expected, Actual: string); virtual;
|
|
procedure InvokeJS_RaiseResultMismatchStr(const aName: string; const Expected, Actual: string); virtual;
|
|
function CreateInvokeJSArgs(const Args: array of const): PByte; virtual;
|
|
function CreateInvokeJSArgs(const Args: array of const): PByte; virtual;
|
|
public
|
|
public
|
|
- constructor JOBCast(Intf: IJSObject); overload;
|
|
|
|
|
|
+ constructor JOBCast(const Intf: IJSObject); overload;
|
|
constructor JOBCreateFromID(aID: TJOBObjectID); virtual; // use this only for the owner (it will release it on free)
|
|
constructor JOBCreateFromID(aID: TJOBObjectID); virtual; // use this only for the owner (it will release it on free)
|
|
constructor JOBCreateGlobal(const aID: UnicodeString); virtual;
|
|
constructor JOBCreateGlobal(const aID: UnicodeString); virtual;
|
|
- class function Cast(Intf: IJSObject): IJSObject; overload;
|
|
|
|
|
|
+ class function Cast(const Intf: IJSObject): IJSObject; overload;
|
|
destructor Destroy; override;
|
|
destructor Destroy; override;
|
|
property JOBObjectID: TJOBObjectID read FJOBObjectID;
|
|
property JOBObjectID: TJOBObjectID read FJOBObjectID;
|
|
property JOBObjectIDOwner: boolean read FJOBObjectIDOwner write FJOBObjectIDOwner;
|
|
property JOBObjectIDOwner: boolean read FJOBObjectIDOwner write FJOBObjectIDOwner;
|
|
@@ -363,7 +363,7 @@ type
|
|
|
|
|
|
TJSSet = class(TJSObject,IJSSet)
|
|
TJSSet = class(TJSObject,IJSSet)
|
|
public
|
|
public
|
|
- class function Cast(Intf: IJSObject): IJSSet; overload;
|
|
|
|
|
|
+ class function Cast(const Intf: IJSObject): IJSSet; overload;
|
|
end;
|
|
end;
|
|
|
|
|
|
{ IJSMap }
|
|
{ IJSMap }
|
|
@@ -376,7 +376,7 @@ type
|
|
|
|
|
|
TJSMap = class(TJSObject,IJSMap)
|
|
TJSMap = class(TJSObject,IJSMap)
|
|
public
|
|
public
|
|
- class function Cast(Intf: IJSObject): IJSMap; overload;
|
|
|
|
|
|
+ class function Cast(const Intf: IJSObject): IJSMap; overload;
|
|
end;
|
|
end;
|
|
|
|
|
|
{ IJSFunction }
|
|
{ IJSFunction }
|
|
@@ -406,7 +406,7 @@ type
|
|
property name: UnicodeString read _GetName write _SetName;
|
|
property name: UnicodeString read _GetName write _SetName;
|
|
property prototyp: IJSFunction read _GetPrototyp;
|
|
property prototyp: IJSFunction read _GetPrototyp;
|
|
property length: NativeInt read _GetLength;
|
|
property length: NativeInt read _GetLength;
|
|
- class function Cast(Intf: IJSObject): IJSFunction; overload;
|
|
|
|
|
|
+ class function Cast(const Intf: IJSObject): IJSFunction; overload;
|
|
end;
|
|
end;
|
|
|
|
|
|
{ IJSDate }
|
|
{ IJSDate }
|
|
@@ -423,7 +423,7 @@ type
|
|
|
|
|
|
TJSDate = class(TJSObject,IJSDate)
|
|
TJSDate = class(TJSObject,IJSDate)
|
|
public
|
|
public
|
|
- class function Cast(Intf: IJSObject): IJSDate; overload;
|
|
|
|
|
|
+ class function Cast(const Intf: IJSObject): IJSDate; overload;
|
|
function Create(aYear: NativeInt; aMonth: NativeInt; aDayOfMonth: NativeInt = 1;
|
|
function Create(aYear: NativeInt; aMonth: NativeInt; aDayOfMonth: NativeInt = 1;
|
|
TheHours: NativeInt = 0; TheMinutes: NativeInt = 0; TheSeconds: NativeInt = 0;
|
|
TheHours: NativeInt = 0; TheMinutes: NativeInt = 0; TheSeconds: NativeInt = 0;
|
|
TheMilliseconds: NativeInt = 0): IJSDate;
|
|
TheMilliseconds: NativeInt = 0): IJSDate;
|
|
@@ -480,7 +480,7 @@ type
|
|
property multiline: Boolean Read _GetMultiLine write _SetMultiline;
|
|
property multiline: Boolean Read _GetMultiLine write _SetMultiline;
|
|
property source: UnicodeString Read _GetSource write _SetSource;
|
|
property source: UnicodeString Read _GetSource write _SetSource;
|
|
property unicode: boolean Read _GetUnicode write _SetUnicode;
|
|
property unicode: boolean Read _GetUnicode write _SetUnicode;
|
|
- class function Cast(Intf: IJSObject): IJSRegExp; overload;
|
|
|
|
|
|
+ class function Cast(const Intf: IJSObject): IJSRegExp; overload;
|
|
end;
|
|
end;
|
|
|
|
|
|
{ IJSString }
|
|
{ IJSString }
|
|
@@ -493,7 +493,7 @@ type
|
|
|
|
|
|
TJSString = class(TJSObject,IJSString)
|
|
TJSString = class(TJSObject,IJSString)
|
|
public
|
|
public
|
|
- class function Cast(Intf: IJSObject): IJSString; overload;
|
|
|
|
|
|
+ class function Cast(const Intf: IJSObject): IJSString; overload;
|
|
end;
|
|
end;
|
|
|
|
|
|
{ IJSArray }
|
|
{ IJSArray }
|
|
@@ -623,7 +623,7 @@ type
|
|
//function values: TJSIterator;
|
|
//function values: TJSIterator;
|
|
Property Length: NativeInt Read _GetLength Write _SetLength;
|
|
Property Length: NativeInt Read _GetLength Write _SetLength;
|
|
property Elements[Index: NativeInt]: TJOB_JSValue read _GetElements write _SetElements; default;
|
|
property Elements[Index: NativeInt]: TJOB_JSValue read _GetElements write _SetElements; default;
|
|
- class function Cast(Intf: IJSObject): IJSArray; overload;
|
|
|
|
|
|
+ class function Cast(const Intf: IJSObject): IJSArray; overload;
|
|
end;
|
|
end;
|
|
|
|
|
|
{ IJSArrayBuffer }
|
|
{ IJSArrayBuffer }
|
|
@@ -636,7 +636,7 @@ type
|
|
|
|
|
|
TJSArrayBuffer = class(TJSObject,IJSArrayBuffer)
|
|
TJSArrayBuffer = class(TJSObject,IJSArrayBuffer)
|
|
public
|
|
public
|
|
- class function Cast(Intf: IJSObject): IJSArrayBuffer; overload;
|
|
|
|
|
|
+ class function Cast(const Intf: IJSObject): IJSArrayBuffer; overload;
|
|
end;
|
|
end;
|
|
|
|
|
|
{ IJSTypedArray }
|
|
{ IJSTypedArray }
|
|
@@ -649,7 +649,7 @@ type
|
|
|
|
|
|
TJSTypedArray = class(TJSObject,IJSTypedArray)
|
|
TJSTypedArray = class(TJSObject,IJSTypedArray)
|
|
public
|
|
public
|
|
- class function Cast(Intf: IJSObject): IJSTypedArray; overload;
|
|
|
|
|
|
+ class function Cast(const Intf: IJSObject): IJSTypedArray; overload;
|
|
end;
|
|
end;
|
|
|
|
|
|
{ IJSInt8Array }
|
|
{ IJSInt8Array }
|
|
@@ -662,7 +662,7 @@ type
|
|
|
|
|
|
TJSInt8Array = class(TJSTypedArray,IJSInt8Array)
|
|
TJSInt8Array = class(TJSTypedArray,IJSInt8Array)
|
|
public
|
|
public
|
|
- class function Cast(Intf: IJSObject): IJSInt8Array; overload;
|
|
|
|
|
|
+ class function Cast(const Intf: IJSObject): IJSInt8Array; overload;
|
|
end;
|
|
end;
|
|
|
|
|
|
{ IJSUint8Array }
|
|
{ IJSUint8Array }
|
|
@@ -675,7 +675,7 @@ type
|
|
|
|
|
|
TJSUint8Array = class(TJSTypedArray,IJSUint8Array)
|
|
TJSUint8Array = class(TJSTypedArray,IJSUint8Array)
|
|
public
|
|
public
|
|
- class function Cast(Intf: IJSObject): IJSUint8Array; overload;
|
|
|
|
|
|
+ class function Cast(const Intf: IJSObject): IJSUint8Array; overload;
|
|
end;
|
|
end;
|
|
|
|
|
|
{ IJSUint8ClampedArray }
|
|
{ IJSUint8ClampedArray }
|
|
@@ -688,7 +688,7 @@ type
|
|
|
|
|
|
TJSUint8ClampedArray = class(TJSTypedArray,IJSUint8ClampedArray)
|
|
TJSUint8ClampedArray = class(TJSTypedArray,IJSUint8ClampedArray)
|
|
public
|
|
public
|
|
- class function Cast(Intf: IJSObject): IJSUint8ClampedArray; overload;
|
|
|
|
|
|
+ class function Cast(const Intf: IJSObject): IJSUint8ClampedArray; overload;
|
|
end;
|
|
end;
|
|
|
|
|
|
{ IJSInt16Array }
|
|
{ IJSInt16Array }
|
|
@@ -701,7 +701,7 @@ type
|
|
|
|
|
|
TJSInt16Array = class(TJSTypedArray,IJSInt16Array)
|
|
TJSInt16Array = class(TJSTypedArray,IJSInt16Array)
|
|
public
|
|
public
|
|
- class function Cast(Intf: IJSObject): IJSInt16Array; overload;
|
|
|
|
|
|
+ class function Cast(const Intf: IJSObject): IJSInt16Array; overload;
|
|
end;
|
|
end;
|
|
|
|
|
|
{ IJSUint16Array }
|
|
{ IJSUint16Array }
|
|
@@ -714,7 +714,7 @@ type
|
|
|
|
|
|
TJSUint16Array = class(TJSTypedArray,IJSUint16Array)
|
|
TJSUint16Array = class(TJSTypedArray,IJSUint16Array)
|
|
public
|
|
public
|
|
- class function Cast(Intf: IJSObject): IJSUint16Array; overload;
|
|
|
|
|
|
+ class function Cast(const Intf: IJSObject): IJSUint16Array; overload;
|
|
end;
|
|
end;
|
|
|
|
|
|
{ IJSInt32Array }
|
|
{ IJSInt32Array }
|
|
@@ -727,7 +727,7 @@ type
|
|
|
|
|
|
TJSInt32Array = class(TJSTypedArray,IJSInt32Array)
|
|
TJSInt32Array = class(TJSTypedArray,IJSInt32Array)
|
|
public
|
|
public
|
|
- class function Cast(Intf: IJSObject): IJSInt32Array; overload;
|
|
|
|
|
|
+ class function Cast(const Intf: IJSObject): IJSInt32Array; overload;
|
|
end;
|
|
end;
|
|
|
|
|
|
{ IJSUint32Array }
|
|
{ IJSUint32Array }
|
|
@@ -740,7 +740,7 @@ type
|
|
|
|
|
|
TJSUint32Array = class(TJSTypedArray,IJSUint32Array)
|
|
TJSUint32Array = class(TJSTypedArray,IJSUint32Array)
|
|
public
|
|
public
|
|
- class function Cast(Intf: IJSObject): IJSUint32Array; overload;
|
|
|
|
|
|
+ class function Cast(const Intf: IJSObject): IJSUint32Array; overload;
|
|
end;
|
|
end;
|
|
|
|
|
|
{ IJSFloat32Array }
|
|
{ IJSFloat32Array }
|
|
@@ -753,7 +753,7 @@ type
|
|
|
|
|
|
TJSFloat32Array = class(TJSTypedArray,IJSFloat32Array)
|
|
TJSFloat32Array = class(TJSTypedArray,IJSFloat32Array)
|
|
public
|
|
public
|
|
- class function Cast(Intf: IJSObject): IJSFloat32Array; overload;
|
|
|
|
|
|
+ class function Cast(const Intf: IJSObject): IJSFloat32Array; overload;
|
|
end;
|
|
end;
|
|
|
|
|
|
{ IJSFloat64Array }
|
|
{ IJSFloat64Array }
|
|
@@ -766,7 +766,7 @@ type
|
|
|
|
|
|
TJSFloat64Array = class(TJSTypedArray,IJSFloat64Array)
|
|
TJSFloat64Array = class(TJSTypedArray,IJSFloat64Array)
|
|
public
|
|
public
|
|
- class function Cast(Intf: IJSObject): IJSFloat64Array; overload;
|
|
|
|
|
|
+ class function Cast(const Intf: IJSObject): IJSFloat64Array; overload;
|
|
end;
|
|
end;
|
|
|
|
|
|
{ IJSBufferSource }
|
|
{ IJSBufferSource }
|
|
@@ -779,7 +779,7 @@ type
|
|
|
|
|
|
TJSBufferSource = class(TJSObject,IJSBufferSource)
|
|
TJSBufferSource = class(TJSObject,IJSBufferSource)
|
|
public
|
|
public
|
|
- class function Cast(Intf: IJSObject): IJSBufferSource; overload;
|
|
|
|
|
|
+ class function Cast(const Intf: IJSObject): IJSBufferSource; overload;
|
|
end;
|
|
end;
|
|
|
|
|
|
{ IJSDataView }
|
|
{ IJSDataView }
|
|
@@ -792,7 +792,7 @@ type
|
|
|
|
|
|
TJSDataView = class(TJSObject,IJSDataView)
|
|
TJSDataView = class(TJSObject,IJSDataView)
|
|
public
|
|
public
|
|
- class function Cast(Intf: IJSObject): IJSDataView; overload;
|
|
|
|
|
|
+ class function Cast(const Intf: IJSObject): IJSDataView; overload;
|
|
end;
|
|
end;
|
|
|
|
|
|
{ IJSJSON }
|
|
{ IJSJSON }
|
|
@@ -819,7 +819,7 @@ type
|
|
function stringify(aValue,aReplacer: TJOB_JSValue): UnicodeString; overload;
|
|
function stringify(aValue,aReplacer: TJOB_JSValue): UnicodeString; overload;
|
|
function stringify(aValue,aReplacer: TJOB_JSValue; space: NativeInt): UnicodeString; overload;
|
|
function stringify(aValue,aReplacer: TJOB_JSValue; space: NativeInt): UnicodeString; overload;
|
|
function stringify(aValue,aReplacer: TJOB_JSValue; const space: UnicodeString): UnicodeString; overload;
|
|
function stringify(aValue,aReplacer: TJOB_JSValue; const space: UnicodeString): UnicodeString; overload;
|
|
- class function Cast(Intf: IJSObject): IJSJSON; overload;
|
|
|
|
|
|
+ class function Cast(const Intf: IJSObject): IJSJSON; overload;
|
|
end;
|
|
end;
|
|
|
|
|
|
{ IJSError }
|
|
{ IJSError }
|
|
@@ -832,7 +832,7 @@ type
|
|
|
|
|
|
TJSError = class(TJSObject,IJSError)
|
|
TJSError = class(TJSObject,IJSError)
|
|
public
|
|
public
|
|
- class function Cast(Intf: IJSObject): IJSError; overload;
|
|
|
|
|
|
+ class function Cast(const Intf: IJSObject): IJSError; overload;
|
|
end;
|
|
end;
|
|
|
|
|
|
TJSPromiseResolver = function(const aValue: Variant): Variant of object;
|
|
TJSPromiseResolver = function(const aValue: Variant): Variant of object;
|
|
@@ -883,7 +883,7 @@ type
|
|
|
|
|
|
TJSTextDecoder = class(TJSObject,IJSTextDecoder)
|
|
TJSTextDecoder = class(TJSObject,IJSTextDecoder)
|
|
public
|
|
public
|
|
- class function Cast(Intf: IJSObject): IJSTextDecoder; overload;
|
|
|
|
|
|
+ class function Cast(const Intf: IJSObject): IJSTextDecoder; overload;
|
|
end;
|
|
end;
|
|
|
|
|
|
{ IJSTextEncoder }
|
|
{ IJSTextEncoder }
|
|
@@ -896,7 +896,7 @@ type
|
|
|
|
|
|
TJSTextEncoder = class(TJSObject,IJSTextEncoder)
|
|
TJSTextEncoder = class(TJSObject,IJSTextEncoder)
|
|
public
|
|
public
|
|
- class function Cast(Intf: IJSObject): IJSTextEncoder; overload;
|
|
|
|
|
|
+ class function Cast(const Intf: IJSObject): IJSTextEncoder; overload;
|
|
end;
|
|
end;
|
|
|
|
|
|
var
|
|
var
|
|
@@ -1147,14 +1147,14 @@ end;
|
|
|
|
|
|
{ TJSTextEncoder }
|
|
{ TJSTextEncoder }
|
|
|
|
|
|
-class function TJSTextEncoder.Cast(Intf: IJSObject): IJSTextEncoder;
|
|
|
|
|
|
+class function TJSTextEncoder.Cast(const Intf: IJSObject): IJSTextEncoder;
|
|
begin
|
|
begin
|
|
Result:=TJSTextEncoder.Cast(Intf);
|
|
Result:=TJSTextEncoder.Cast(Intf);
|
|
end;
|
|
end;
|
|
|
|
|
|
{ TJSTextDecoder }
|
|
{ TJSTextDecoder }
|
|
|
|
|
|
-class function TJSTextDecoder.Cast(Intf: IJSObject): IJSTextDecoder;
|
|
|
|
|
|
+class function TJSTextDecoder.Cast(const Intf: IJSObject): IJSTextDecoder;
|
|
begin
|
|
begin
|
|
Result:=TJSTextDecoder.Cast(Intf);
|
|
Result:=TJSTextDecoder.Cast(Intf);
|
|
end;
|
|
end;
|
|
@@ -1250,7 +1250,7 @@ end;
|
|
|
|
|
|
{ TJSError }
|
|
{ TJSError }
|
|
|
|
|
|
-class function TJSError.Cast(Intf: IJSObject): IJSError;
|
|
|
|
|
|
+class function TJSError.Cast(const Intf: IJSObject): IJSError;
|
|
begin
|
|
begin
|
|
Result:=TJSError.Cast(Intf);
|
|
Result:=TJSError.Cast(Intf);
|
|
end;
|
|
end;
|
|
@@ -1289,98 +1289,99 @@ begin
|
|
Result:=InvokeJSUnicodeStringResult('stringify',[aValue,aReplacer,space]);
|
|
Result:=InvokeJSUnicodeStringResult('stringify',[aValue,aReplacer,space]);
|
|
end;
|
|
end;
|
|
|
|
|
|
-class function TJSJSON.Cast(Intf: IJSObject): IJSJSON;
|
|
|
|
|
|
+class function TJSJSON.Cast(const Intf: IJSObject): IJSJSON;
|
|
begin
|
|
begin
|
|
Result:=TJSJSON.Cast(Intf);
|
|
Result:=TJSJSON.Cast(Intf);
|
|
end;
|
|
end;
|
|
|
|
|
|
{ TJSDataView }
|
|
{ TJSDataView }
|
|
|
|
|
|
-class function TJSDataView.Cast(Intf: IJSObject): IJSDataView;
|
|
|
|
|
|
+class function TJSDataView.Cast(const Intf: IJSObject): IJSDataView;
|
|
begin
|
|
begin
|
|
Result:=TJSDataView.Cast(Intf);
|
|
Result:=TJSDataView.Cast(Intf);
|
|
end;
|
|
end;
|
|
|
|
|
|
{ TJSBufferSource }
|
|
{ TJSBufferSource }
|
|
|
|
|
|
-class function TJSBufferSource.Cast(Intf: IJSObject): IJSBufferSource;
|
|
|
|
|
|
+class function TJSBufferSource.Cast(const Intf: IJSObject): IJSBufferSource;
|
|
begin
|
|
begin
|
|
Result:=TJSBufferSource.Cast(Intf);
|
|
Result:=TJSBufferSource.Cast(Intf);
|
|
end;
|
|
end;
|
|
|
|
|
|
{ TJSFloat64Array }
|
|
{ TJSFloat64Array }
|
|
|
|
|
|
-class function TJSFloat64Array.Cast(Intf: IJSObject): IJSFloat64Array;
|
|
|
|
|
|
+class function TJSFloat64Array.Cast(const Intf: IJSObject): IJSFloat64Array;
|
|
begin
|
|
begin
|
|
Result:=TJSFloat64Array.Cast(Intf);
|
|
Result:=TJSFloat64Array.Cast(Intf);
|
|
end;
|
|
end;
|
|
|
|
|
|
{ TJSFloat32Array }
|
|
{ TJSFloat32Array }
|
|
|
|
|
|
-class function TJSFloat32Array.Cast(Intf: IJSObject): IJSFloat32Array;
|
|
|
|
|
|
+class function TJSFloat32Array.Cast(const Intf: IJSObject): IJSFloat32Array;
|
|
begin
|
|
begin
|
|
Result:=TJSFloat32Array.Cast(Intf);
|
|
Result:=TJSFloat32Array.Cast(Intf);
|
|
end;
|
|
end;
|
|
|
|
|
|
{ TJSUint32Array }
|
|
{ TJSUint32Array }
|
|
|
|
|
|
-class function TJSUint32Array.Cast(Intf: IJSObject): IJSUint32Array;
|
|
|
|
|
|
+class function TJSUint32Array.Cast(const Intf: IJSObject): IJSUint32Array;
|
|
begin
|
|
begin
|
|
Result:=TJSUint32Array.Cast(Intf);
|
|
Result:=TJSUint32Array.Cast(Intf);
|
|
end;
|
|
end;
|
|
|
|
|
|
{ TJSInt32Array }
|
|
{ TJSInt32Array }
|
|
|
|
|
|
-class function TJSInt32Array.Cast(Intf: IJSObject): IJSInt32Array;
|
|
|
|
|
|
+class function TJSInt32Array.Cast(const Intf: IJSObject): IJSInt32Array;
|
|
begin
|
|
begin
|
|
Result:=TJSInt32Array.Cast(Intf);
|
|
Result:=TJSInt32Array.Cast(Intf);
|
|
end;
|
|
end;
|
|
|
|
|
|
{ TJSUint16Array }
|
|
{ TJSUint16Array }
|
|
|
|
|
|
-class function TJSUint16Array.Cast(Intf: IJSObject): IJSUint16Array;
|
|
|
|
|
|
+class function TJSUint16Array.Cast(const Intf: IJSObject): IJSUint16Array;
|
|
begin
|
|
begin
|
|
Result:=TJSUint16Array.Cast(Intf);
|
|
Result:=TJSUint16Array.Cast(Intf);
|
|
end;
|
|
end;
|
|
|
|
|
|
{ TJSInt16Array }
|
|
{ TJSInt16Array }
|
|
|
|
|
|
-class function TJSInt16Array.Cast(Intf: IJSObject): IJSInt16Array;
|
|
|
|
|
|
+class function TJSInt16Array.Cast(const Intf: IJSObject): IJSInt16Array;
|
|
begin
|
|
begin
|
|
Result:=TJSInt16Array.Cast(Intf);
|
|
Result:=TJSInt16Array.Cast(Intf);
|
|
end;
|
|
end;
|
|
|
|
|
|
{ TJSUint8ClampedArray }
|
|
{ TJSUint8ClampedArray }
|
|
|
|
|
|
-class function TJSUint8ClampedArray.Cast(Intf: IJSObject): IJSUint8ClampedArray;
|
|
|
|
|
|
+class function TJSUint8ClampedArray.Cast(const Intf: IJSObject
|
|
|
|
+ ): IJSUint8ClampedArray;
|
|
begin
|
|
begin
|
|
Result:=TJSUint8ClampedArray.Cast(Intf);
|
|
Result:=TJSUint8ClampedArray.Cast(Intf);
|
|
end;
|
|
end;
|
|
|
|
|
|
{ TJSUInt8Array }
|
|
{ TJSUInt8Array }
|
|
|
|
|
|
-class function TJSUInt8Array.Cast(Intf: IJSObject): IJSUInt8Array;
|
|
|
|
|
|
+class function TJSUint8Array.Cast(const Intf: IJSObject): IJSUint8Array;
|
|
begin
|
|
begin
|
|
Result:=TJSUInt8Array.Cast(Intf);
|
|
Result:=TJSUInt8Array.Cast(Intf);
|
|
end;
|
|
end;
|
|
|
|
|
|
{ TJSInt8Array }
|
|
{ TJSInt8Array }
|
|
|
|
|
|
-class function TJSInt8Array.Cast(Intf: IJSObject): IJSInt8Array;
|
|
|
|
|
|
+class function TJSInt8Array.Cast(const Intf: IJSObject): IJSInt8Array;
|
|
begin
|
|
begin
|
|
Result:=TJSInt8Array.Cast(Intf);
|
|
Result:=TJSInt8Array.Cast(Intf);
|
|
end;
|
|
end;
|
|
|
|
|
|
{ TJSTypedArray }
|
|
{ TJSTypedArray }
|
|
|
|
|
|
-class function TJSTypedArray.Cast(Intf: IJSObject): IJSTypedArray;
|
|
|
|
|
|
+class function TJSTypedArray.Cast(const Intf: IJSObject): IJSTypedArray;
|
|
begin
|
|
begin
|
|
Result:=TJSTypedArray.Cast(Intf);
|
|
Result:=TJSTypedArray.Cast(Intf);
|
|
end;
|
|
end;
|
|
|
|
|
|
{ TJSArrayBuffer }
|
|
{ TJSArrayBuffer }
|
|
|
|
|
|
-class function TJSArrayBuffer.Cast(Intf: IJSObject): IJSArrayBuffer;
|
|
|
|
|
|
+class function TJSArrayBuffer.Cast(const Intf: IJSObject): IJSArrayBuffer;
|
|
begin
|
|
begin
|
|
Result:=TJSArrayBuffer.Cast(Intf);
|
|
Result:=TJSArrayBuffer.Cast(Intf);
|
|
end;
|
|
end;
|
|
@@ -1536,14 +1537,14 @@ begin
|
|
Result:=InvokeJSMaxIntResult('unshift',[]);
|
|
Result:=InvokeJSMaxIntResult('unshift',[]);
|
|
end;
|
|
end;
|
|
|
|
|
|
-class function TJSArray.Cast(Intf: IJSObject): IJSArray;
|
|
|
|
|
|
+class function TJSArray.Cast(const Intf: IJSObject): IJSArray;
|
|
begin
|
|
begin
|
|
Result:=TJSArray.Cast(Intf);
|
|
Result:=TJSArray.Cast(Intf);
|
|
end;
|
|
end;
|
|
|
|
|
|
{ TJSString }
|
|
{ TJSString }
|
|
|
|
|
|
-class function TJSString.Cast(Intf: IJSObject): IJSString;
|
|
|
|
|
|
+class function TJSString.Cast(const Intf: IJSObject): IJSString;
|
|
begin
|
|
begin
|
|
Result:=TJSString.Cast(Intf);
|
|
Result:=TJSString.Cast(Intf);
|
|
end;
|
|
end;
|
|
@@ -1620,7 +1621,7 @@ begin
|
|
Result:=InvokeJSBooleanResult('test',[aString]);
|
|
Result:=InvokeJSBooleanResult('test',[aString]);
|
|
end;
|
|
end;
|
|
|
|
|
|
-class function TJSRegExp.Cast(Intf: IJSObject): IJSRegExp;
|
|
|
|
|
|
+class function TJSRegExp.Cast(const Intf: IJSObject): IJSRegExp;
|
|
begin
|
|
begin
|
|
Result:=TJSRegExp.Cast(Intf);
|
|
Result:=TJSRegExp.Cast(Intf);
|
|
end;
|
|
end;
|
|
@@ -1647,21 +1648,21 @@ begin
|
|
WriteJSPropertyUnicodeString('length',AValue);
|
|
WriteJSPropertyUnicodeString('length',AValue);
|
|
end;
|
|
end;
|
|
|
|
|
|
-class function TJSFunction.Cast(Intf: IJSObject): IJSFunction;
|
|
|
|
|
|
+class function TJSFunction.Cast(const Intf: IJSObject): IJSFunction;
|
|
begin
|
|
begin
|
|
Result:=TJSFunction.Cast(Intf);
|
|
Result:=TJSFunction.Cast(Intf);
|
|
end;
|
|
end;
|
|
|
|
|
|
{ TJSMap }
|
|
{ TJSMap }
|
|
|
|
|
|
-class function TJSMap.Cast(Intf: IJSObject): IJSMap;
|
|
|
|
|
|
+class function TJSMap.Cast(const Intf: IJSObject): IJSMap;
|
|
begin
|
|
begin
|
|
Result:=TJSMap.Cast(Intf);
|
|
Result:=TJSMap.Cast(Intf);
|
|
end;
|
|
end;
|
|
|
|
|
|
{ TJSSet }
|
|
{ TJSSet }
|
|
|
|
|
|
-class function TJSSet.Cast(Intf: IJSObject): IJSSet;
|
|
|
|
|
|
+class function TJSSet.Cast(const Intf: IJSObject): IJSSet;
|
|
begin
|
|
begin
|
|
Result:=TJSSet.Cast(Intf);
|
|
Result:=TJSSet.Cast(Intf);
|
|
end;
|
|
end;
|
|
@@ -2823,7 +2824,7 @@ begin
|
|
{$ENDIF}
|
|
{$ENDIF}
|
|
end;
|
|
end;
|
|
|
|
|
|
-constructor TJSObject.JOBCast(Intf: IJSObject);
|
|
|
|
|
|
+constructor TJSObject.JOBCast(const Intf: IJSObject);
|
|
begin
|
|
begin
|
|
FJOBObjectID:=Intf.GetJSObjectID;
|
|
FJOBObjectID:=Intf.GetJSObjectID;
|
|
FJOBCastSrc:=Intf.GetJSObjectCastSrc;
|
|
FJOBCastSrc:=Intf.GetJSObjectCastSrc;
|
|
@@ -2845,7 +2846,7 @@ begin
|
|
FJOBObjectIDOwner:=true;
|
|
FJOBObjectIDOwner:=true;
|
|
end;
|
|
end;
|
|
|
|
|
|
-class function TJSObject.Cast(Intf: IJSObject): IJSObject;
|
|
|
|
|
|
+class function TJSObject.Cast(const Intf: IJSObject): IJSObject;
|
|
begin
|
|
begin
|
|
Result:=JOBCast(Intf);
|
|
Result:=JOBCast(Intf);
|
|
end;
|
|
end;
|
|
@@ -3208,7 +3209,7 @@ end;
|
|
|
|
|
|
{ TJSDate }
|
|
{ TJSDate }
|
|
|
|
|
|
-class function TJSDate.Cast(Intf: IJSObject): IJSDate;
|
|
|
|
|
|
+class function TJSDate.Cast(const Intf: IJSObject): IJSDate;
|
|
begin
|
|
begin
|
|
Result:=TJSDate.JOBCast(Intf);
|
|
Result:=TJSDate.JOBCast(Intf);
|
|
end;
|
|
end;
|