-
Notifications
You must be signed in to change notification settings - Fork 9
Open
Description
It seems that both osavargen and osaparser have no support for the AppleScript "missing value".
- osavargen translates JS
nullinto an empty string, potentially cause syntax errors (e.g. JS[11,null]=> AS{11,}which is an error in Applescript; - osavargen translates JS
undefinedinto ASnull, but - osaparser parses AS
nullto JS string'null', and - osaparser parses AS
missing valueto JS stringmissing value.
It seems more reasonable and useful to me to have AS null parse to JS null and AS missing value parse to JS undefined, and have osavargen behave accordingly (But the test-scripts require osavargen to translate JS null to nothing).
I'm making a fork that handles null, missing value and undefined in this way, but this would be a breaking change. Do you want a pull-request?
Metadata
Metadata
Assignees
Labels
No labels