Skip to content

Commit

Permalink
blittableCopy Setter/Getter paramerter miss match
Browse files Browse the repository at this point in the history
  • Loading branch information
bluedoom committed Jul 26, 2022
1 parent 11e4eb1 commit adc209b
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -587,11 +587,10 @@ namespace PuertsStaticWrap
public static void InitBlittableCopy(Puerts.JsEnv jsEnv)
{
Puerts.StaticTranslate<${data.Name}>.ReplaceDefault(StaticSetter, StaticGetter);
int jsEnvIdx = jsEnv.Index;
jsEnv.RegisterGeneralGetSet(typeof(${data.Name}), (IntPtr isolate, Puerts.IGetValueFromJs getValueApi, IntPtr value, bool isByRef) =>
jsEnv.RegisterGeneralGetSet(typeof(${data.Name}), (jsEnvIdx, isolate, getValueApi, value, isByRef) =>
{
return StaticGetter(jsEnvIdx, isolate, getValueApi, value, isByRef);
}, (IntPtr isolate, Puerts.ISetValueToJs setValueApi, IntPtr value, object obj) =>
}, (jsEnvIdx, isolate, setValueApi, value, obj) =>
{
StaticSetter(jsEnvIdx, isolate, setValueApi, value, (${data.Name})obj);
});
Expand Down

0 comments on commit adc209b

Please sign in to comment.