Skip Menu |

This queue is for tickets about the Data-JavaScript CPAN distribution.

Report information
The Basics
Id: 9305
Status: resolved
Priority: 0/
Queue: Data-JavaScript

People
Owner: jpierce [...] cpan.org
Requestors: surfthe.us [...] scotte?subject=flipAtTheAt
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: Simple illistration of a easy mistake. (documentation)
These can cause issues: use Data::JavaScript {UNDEF => ''}; print jsdump('myvar',\%myvar,''); var myvar = new Object; myvar['6'] = new Object; myvar['6'].myvalue = ; BAD -^ A subtle but important difference: use Data::JavaScript {UNDEF => '\'\''}; print jsdump('myvar',\%myvar,'\'\''); var myvar = new Object; myvar['6'] = new Object; myvar['6'].myvalue = ''; OK -^ My approach to javascript is sometimes silly. I'm sure someone else will bonk their head on this one. I'm using the defaults now, as it's identical to undefined, and that's easy to check for. Ciao! and thanks for a cool CPAN module. Scott.
Thanks, I'll look into adding that into the documentation of the to be released Real Soon Now update along with the note I was planning to include tht JS 1.3+ supports undefined, a direct mapping of undef.