Skip to content

Commit 76ffac3

Browse files
committed
clarify unsafe-get docstring
1 parent 0d47a47 commit 76ffac3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main/clojure/cljs/core.cljc

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -994,8 +994,9 @@
994994
`(~'js* ~(core/str "(~{}[~{}][~{}]" astr " = ~{})") ~a ~idx ~idx2 ~@idxv))))
995995

996996
(core/defmacro unsafe-get
997-
"Efficient alternative to goog.object/get which lacks opt_val and emits
998-
unchecked property access."
997+
"INTERNAL. Compiles to JavScript property access using bracket notation. Does
998+
not distinguish between object and array types and not subject to compiler
999+
static analysis."
9991000
[obj key]
10001001
(core/list 'js* "(~{}[~{}])" obj key))
10011002

0 commit comments

Comments
 (0)