浏览代码

webidl: fixed read object property

mattias 3 年之前
父节点
当前提交
c2b1eeb8c6
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/webidl/src/webidltowasmjob.pp

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

@@ -744,7 +744,7 @@ begin
   'UnicodeString': ReadFuncName:='ReadJSPropertyUnicodeString';
   'UnicodeString': ReadFuncName:='ReadJSPropertyUnicodeString';
   'TJOB_JSValue': ReadFuncName:='ReadJSPropertyValue';
   'TJOB_JSValue': ReadFuncName:='ReadJSPropertyValue';
   else
   else
-    Call:='ReadJSPropertyObject('+Attr.Name+','''+GetTypeName(Attr.AttributeType)+''')';
+    Call:='ReadJSPropertyObject('''+Attr.Name+''','+GetTypeName(Attr.AttributeType)+')';
   end;
   end;
 
 
   if Call='' then
   if Call='' then