Skip to content

Tests failing with typescript >=2.2 #4

@jnordberg

Description

@jnordberg
$ ./test/test.js
tsc /Users/jnordberg/Development/wasm-util/test/build_factorial_test.ts -> /Users/jnordberg/Development/wasm-util/test/build/build_factorial_test.js
run build
script.runInNewContext("/Users/jnordberg/Development/wasm-util/test/build_test.js") ENTER
script.runInNewContext("/Users/jnordberg/Development/wasm-util/test/build_test.js") EXIT
run mem_align_checks
script.runInNewContext("/Users/jnordberg/Development/wasm-util/test/mem_align_checks_test.js") ENTER
script.runInNewContext("/Users/jnordberg/Development/wasm-util/test/mem_align_checks_test.js") EXIT
pass mem_align_checks
pass build
run build_factorial
script.runInNewContext("/Users/jnordberg/Development/wasm-util/test/build_factorial_test.ts") ENTER
FAIL build_factorial:
ReferenceError: exports is not defined
    at /Users/jnordberg/Development/wasm-util/test/build_factorial_test.ts:2:23
    at ContextifyScript.Script.runInContext (vm.js:32:29)
    at ContextifyScript.Script.runInNewContext (vm.js:38:15)
    at Promise (/Users/jnordberg/Development/wasm-util/test/test.js:135:14)
    at runJSTestInSandbox (/Users/jnordberg/Development/wasm-util/test/test.js:91:10)
    at catch.then.source (/Users/jnordberg/Development/wasm-util/test/test.js:239:5)
aborted by error

Works fine if I pin the ts version to 2.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions