Skip to content

Commit

Permalink
* wip add TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
swannodette committed Jan 25, 2025
1 parent fee443c commit 9609c26
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion src/test/clojure/cljs/externs_parsing_tests.clj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@
;; You must not remove this notice, or any other, from this software.

(ns cljs.externs-parsing-tests
(:require [cljs.closure :as closure]
(:require [cljs.analyzer :as ana]
[cljs.closure :as closure]
[cljs.compiler :as comp]
[cljs.env :as env]
[cljs.externs :as externs]
[clojure.java.io :as io]
[clojure.test :as test :refer [deftest is]])
Expand Down Expand Up @@ -45,8 +48,16 @@
(find 'HTMLDocument) first meta)]
(is (= 'Document (:super info)))))

;; TODO:
;; analyze (.isNaN js/NaN 1)
;; node :tag should be js/Boolean

(comment

;; js/Boolean
(env/with-compiler-env (env/default-compiler-env)
(ana/js-tag '[Number isNaN] :ret-tag))

(externs/parse-externs
(externs/resource->source-file (io/resource "goog/object/object.js")))

Expand Down

0 comments on commit 9609c26

Please sign in to comment.