create-embedding-executable: fix namespace and module-declaration problem

original commit: 8253994434
This commit is contained in:
Matthew Flatt 2014-03-09 08:43:40 -06:00
commit 4f0c0ad3df
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,3 @@
#lang racket
"Ok"

View File

@ -620,3 +620,16 @@
(try-reader)
(try-planet)
(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")))))