Permalink
Browse files

add []

  • Loading branch information...
ujihisa committed Jan 5, 2013
1 parent b2d5521 commit 8878e40f5a21f8a79067aa822d088db12cb87029
Showing with 5 additions and 0 deletions.
  1. +5 −0 runtime.clj
View
@@ -131,6 +131,11 @@
:else
(prn 'hmm...?))))
(defbuiltin -aref [x i]
(if (= "object" (js-type x))
(get x (js-string i) 'undefined)
'undefined))
(def ^:dynamic *builtins*
(merge *builtins* {'null 'null 'undefined 'undefined 'NaN 'NaN}))

0 comments on commit 8878e40

Please sign in to comment.