From bf25b32cb23331bf2e4357965384ff22bcb13603 Mon Sep 17 00:00:00 2001 From: mattias Date: Sat, 18 Jun 2022 14:25:37 +0200 Subject: [PATCH] webidl: fixed typos --- utils/pas2js/webidl2pas.pp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/utils/pas2js/webidl2pas.pp b/utils/pas2js/webidl2pas.pp index e32548ae62..c6c4e129b3 100644 --- a/utils/pas2js/webidl2pas.pp +++ b/utils/pas2js/webidl2pas.pp @@ -104,7 +104,6 @@ var I : Integer; begin - Terminate; // quick check parameters ErrorMsg:=CheckOptions('hi:o:u:m:n:vx:t:ced::pw:', ['help','input:','output:','unitname:','include:','implementation:','verbose','extra:','typealiases:','constexternal','expandunionargs','dicttoclass::','optionsinheader','webidlversion:']); @@ -133,9 +132,9 @@ begin else Raise EConvertError.CreateFmt('Invalid webidl version: %s',[A]); end; - if hasoption('n','include') then + if HasOption('n','include') then FWebIDLToPas.IncludeInterfaceCode.LoadFromFile(GetOptionValue('n','include')); - if hasoption('m','implementation') then + if HasOption('m','implementation') then FWebIDLToPas.IncludeImplementationCode.LoadFromFile(GetOptionValue('m','implementation')); FWebIDLToPas.ExtraUnits:=GetOPtionValue('x','extra'); A:=GetOptionValue('t','typealiases');