test cases are running again
This commit is contained in:
parent
8cd54d53f7
commit
7b49557a7e
|
@ -6,5 +6,5 @@
|
||||||
"test-assemble.rkt"
|
"test-assemble.rkt"
|
||||||
"test-browser-evaluate.rkt"
|
"test-browser-evaluate.rkt"
|
||||||
"test-package.rkt"
|
"test-package.rkt"
|
||||||
#;"test-conform.rkt"
|
"test-conform-browser.rkt")
|
||||||
#;"test-conform-browser.rkt")
|
#;"test-conform.rkt"
|
||||||
|
|
|
@ -1,8 +1,36 @@
|
||||||
#lang racket
|
#lang racket
|
||||||
(require "browser-evaluate.rkt"
|
(require "browser-evaluate.rkt"
|
||||||
"package.rkt")
|
"package.rkt"
|
||||||
|
racket/port
|
||||||
|
racket/runtime-path)
|
||||||
|
|
||||||
(define evaluate (make-evaluate package-anonymous))
|
(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 #<<EOF
|
||||||
|
return (function(succ, fail, params) {
|
||||||
|
return innerInvoke(MACHINE, succ, fail, params);
|
||||||
|
});
|
||||||
|
});
|
||||||
|
EOF
|
||||||
|
)
|
||||||
|
|
||||||
|
)))
|
||||||
|
|
||||||
(define-syntax (test stx)
|
(define-syntax (test stx)
|
||||||
(syntax-case stx ()
|
(syntax-case stx ()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user