OK, but I can accidentally return an undefined paramenter any time, surely? 
This slightly unexpected behaviour only protects against variables named in 
the function definition? Also, I notice Jeremy says "undefined".

Thanks

On Saturday, 11 March 2017 20:33:58 UTC+11, PMario wrote:
>
> On Saturday, March 11, 2017 at 6:50:06 AM UTC+1, tejjyid wrote:
>>
>> It seems that when I execute a JS macro with an unsupplied parameter, 
>> it's set to "" rather than undefined. Is that always the case?
>>
>
> Yes. 
>
> Macros return text and we need to be 100% compatible with wikitext macros 
> <http://tiddlywiki.com/#Macro%20Definitions%20in%20WikiText>. They work 
> that way. 
>
> -m
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to tiddlywiki+unsubscr...@googlegroups.com.
To post to this group, send email to tiddlywiki@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/9b4922b2-4825-4631-a481-dfff8985062f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to