Browse Source

webidl: wasmjob: skip constructor

mattias 3 years ago
parent
commit
f1a6d97765
1 changed files with 5 additions and 1 deletions
  1. 5 1
      packages/webidl/src/webidltowasmjob.pp

+ 5 - 1
packages/webidl/src/webidltowasmjob.pp

@@ -440,7 +440,11 @@ begin
   Suff:='';
   Suff:='';
   RT:='';
   RT:='';
   if (foConstructor in aDef.Options) then
   if (foConstructor in aDef.Options) then
-    FN:='New'
+    begin
+    FN:='New';
+    writeln('Note: skipping constructor of '+aDef.Parent.Name+' at '+GetDefPos(aDef));
+    exit(false);
+    end
   else
   else
     begin
     begin
     FN:=GetName(aDef);
     FN:=GetName(aDef);