Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

extend-type: add symbol and bigint JS primitive types #213

Merged
merged 1 commit into from
Sep 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions src/main/clojure/cljs/core.cljc
Original file line number Diff line number Diff line change
Expand Up @@ -1304,18 +1304,23 @@
{nil "null"
'object "object"
'string "string"
'symbol "symbol"
'number "number"
'bigint "bigint"
'array "array"
'function "function"
'boolean "boolean"
'default "_"})

;; only used for generating warnings when extending fundamental JS types
(def ^:private js-base-type
{'js/Boolean "boolean"
'js/String "string"
'js/Symbol "symbol"
'js/Array "array"
'js/Object "object"
'js/Number "number"
'js/BigInt "bigint"
'js/Function "function"})

(core/defmacro reify
Expand Down
Loading