When turning a quoted list into a JS array, compile elements that are NIL as "null...
authorDaniel Gackle <danielgackle@gmail.com>
Sat, 11 Apr 2009 22:51:29 +0000 (15:51 -0700)
committerDaniel Gackle <danielgackle@gmail.com>
Sat, 11 Apr 2009 22:51:29 +0000 (15:51 -0700)
commitb4bb2beddbbcda4eb886c72e23cf067b80dd64b4
treeb2109a68ff0eac266cb807cc58291b043037ee8f
parent48ea6dd2196d3859b0d4d9d7a92181bb00f3e4bd
When turning a quoted list into a JS array, compile elements that are NIL as "null", not "[]". There is no way to make JS completely consistent with Lisp here, because NIL means two different things in JS (null or an empty list) where it means only one thing in Lisp. We have to pick one thing in this context, and "[null]" is more common than "[[]]".
src/special-forms.lisp