fix: handle functions while marshalling (#3102)

* fix: handle functions while marshalling

* fix: js style
This commit is contained in:
Shishir Karanth 2024-09-16 16:40:29 +05:30 committed by GitHub
parent 5e4a96792e
commit 238c790f9b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -25,6 +25,8 @@ const marshallToVm = (value, vm) => {
}
return obj;
}
} else if (typeof value === 'function') {
return vm.newString('[Function (anonymous)]');
}
};