mirror of
https://github.com/esiur/esiur-js.git
synced 2025-06-27 07:13:12 +00:00
bugfix
This commit is contained in:
@ -126,11 +126,12 @@ export default class DistributedResource extends IResource
|
||||
&& arguments[0].constructor.name == "Object")
|
||||
{
|
||||
|
||||
let argsObj = arguments[0];
|
||||
// named args
|
||||
for (let i = 0; i < ft.args.length; i++){
|
||||
let arg = ft.args[i];
|
||||
if (arguments[arg.name] != undefined) {
|
||||
argsMap.set(new UInt8(arg.index), arguments[arg.name]);
|
||||
if (argsObj[arg.name] != undefined) {
|
||||
argsMap.set(new UInt8(arg.index), argsObj[arg.name]);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user