mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-08-18 14:29:04 +02:00
rtl: fixed jsInstanceOf returning boolean
This commit is contained in:
parent
9a0639a37f
commit
3df6637e4b
@ -901,7 +901,7 @@ function isUndefined(const v: JSValue): boolean; assembler;
|
|||||||
function isDefined(const v: JSValue): boolean; assembler;
|
function isDefined(const v: JSValue): boolean; assembler;
|
||||||
function isUTF16Char(const v: JSValue): boolean; assembler;
|
function isUTF16Char(const v: JSValue): boolean; assembler;
|
||||||
function isExt(const InstanceOrClass, aClass: JSValue): boolean; external name 'rtl.isExt'; // aClass can be a JS object or function
|
function isExt(const InstanceOrClass, aClass: JSValue): boolean; external name 'rtl.isExt'; // aClass can be a JS object or function
|
||||||
function jsInstanceOf(const aFunction, aFunctionWithPrototype: JSValue): String; assembler;
|
function jsInstanceOf(const aFunction, aFunctionWithPrototype: JSValue): Boolean; assembler;
|
||||||
function jsTypeOf(const v: JSValue): String; external name 'typeof';
|
function jsTypeOf(const v: JSValue): String; external name 'typeof';
|
||||||
function jsIsNaN(const v: JSValue): boolean; external name 'isNaN';// true if value cannot be converted to a number. e.g. True on NaN, undefined, {}, '123'. False on true, null, '', ' ', '1A'
|
function jsIsNaN(const v: JSValue): boolean; external name 'isNaN';// true if value cannot be converted to a number. e.g. True on NaN, undefined, {}, '123'. False on true, null, '', ' ', '1A'
|
||||||
function jsIsFinite(const v: JSValue): boolean; external name 'isFinite';// true if value is a Finite number
|
function jsIsFinite(const v: JSValue): boolean; external name 'isFinite';// true if value is a Finite number
|
||||||
@ -1043,7 +1043,7 @@ asm
|
|||||||
end;
|
end;
|
||||||
|
|
||||||
function jsInstanceOf(const aFunction, aFunctionWithPrototype: JSValue
|
function jsInstanceOf(const aFunction, aFunctionWithPrototype: JSValue
|
||||||
): String; assembler;
|
): Boolean; assembler;
|
||||||
asm
|
asm
|
||||||
return aFunction instanceof aFunctionWithPrototype;
|
return aFunction instanceof aFunctionWithPrototype;
|
||||||
end;
|
end;
|
||||||
|
Loading…
Reference in New Issue
Block a user