1
0
mirror of https://github.com/janet-lang/janet synced 2024-12-26 08:20:27 +00:00

Merge pull request #811 from sogaiu/use-deprecation-mechanism-for-file-popen

Apply deprecation machinery to file/popen
This commit is contained in:
Calvin Rose 2021-09-21 15:16:20 -05:00 committed by GitHub
commit d6f41bcf98
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3690,6 +3690,10 @@
(put into k (x k))))
into)
# Deprecate file/popen
(when-let [v (get root-env 'file/popen)]
(put v :deprecated true))
# Modify root-env to remove private symbols and
# flatten nested tables.
(loop [[k v] :in (pairs root-env)