#lang racket (require "browser-evaluate.rkt" "package.rkt" racket/port racket/runtime-path) (define-runtime-path runtime.js "runtime.js") (define evaluate (make-evaluate (lambda (program op) (fprintf op "(function () {") ;; The runtime code (call-with-input-file* runtime.js (lambda (ip) (copy-port ip op))) (newline op) (fprintf op "var innerInvoke = ") (package-anonymous program op) (fprintf op "();\n") (fprintf op #<string (open-input-file "tests/conform/expected0.txt")))