Skip to content

Commit 4f7195f

Browse files
committed
Merge branch 'fix-clj-handle-literal-null'
2 parents 0fc7f4a + 996986c commit 4f7195f

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/targets/clojure/clj_http.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,9 @@ File.prototype.toString = function () {
3030

3131
var jsType = function (x) {
3232
return (typeof x !== 'undefined')
33-
? x.constructor.name.toLowerCase()
33+
? ((x !== null)
34+
? x.constructor.name.toLowerCase()
35+
: 'null')
3436
: null
3537
}
3638

0 commit comments

Comments
 (0)