create-embedding-executable: fix namespace and module-declaration problem
original commit: 8253994434
This commit is contained in:
commit
4f0c0ad3df
|
@ -0,0 +1,3 @@
|
||||||
|
#lang racket
|
||||||
|
|
||||||
|
"Ok"
|
|
@ -620,3 +620,16 @@
|
||||||
(try-reader)
|
(try-reader)
|
||||||
(try-planet)
|
(try-planet)
|
||||||
(try-*sl)
|
(try-*sl)
|
||||||
|
|
||||||
|
;; ----------------------------------------
|
||||||
|
;; Make sure that embedding does not break future module declarations
|
||||||
|
|
||||||
|
(let ()
|
||||||
|
(parameterize ([current-output-port (open-output-bytes)])
|
||||||
|
(write-module-bundle
|
||||||
|
#:modules (list (list #f (collection-file-path "embed-me24.rkt" "tests" "compiler" "embed")))))
|
||||||
|
|
||||||
|
(parameterize ([read-accept-reader #t]
|
||||||
|
[current-namespace (make-base-namespace)])
|
||||||
|
(eval (read (open-input-string "#lang racket 10")))))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user