mirror of
				https://github.com/janet-lang/janet
				synced 2025-10-31 07:33:01 +00:00 
			
		
		
		
	Don't check for docstrings when explicitly disabled.
This commit is contained in:
		| @@ -4655,9 +4655,10 @@ | ||||
|       (put flat :doc nil)) | ||||
|     (when (boot/config :no-sourcemaps) | ||||
|       (put flat :source-map nil)) | ||||
|     (unless (boot/config :no-docstrings) | ||||
|       (unless (v :private) | ||||
|         (unless (v :doc) | ||||
|         (errorf "no docs: %v %p" k v))) # make sure we have docs | ||||
|           (errorf "no docs: %v %p" k v)))) # make sure we have docs | ||||
|     # Fix directory separators on windows to make image identical between windows and non-windows | ||||
|     (when-let [sm (get flat :source-map)] | ||||
|       (put flat :source-map [(string/replace-all "\\" "/" (sm 0)) (sm 1) (sm 2)])) | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Calvin Rose
					Calvin Rose