File: main.js

package info (click to toggle)
r-cran-v8 7.0.0%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 440 kB
  • sloc: javascript: 980; cpp: 432; sh: 23; makefile: 8
file content (14 lines) | stat: -rw-r--r-- 360 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
async function run_test(){
    const {foo, bar} = await import("./modules/my-module.mjs");
    return foo + bar();
}

async function test_bad_path(){
    const {foo, bar} = await import("somepackage");
    return foo + bar();
}

async function test_syntax_error1(){
    const {foo, bar} = await import("./modules/broken-module.mjs");
    return foo + bar();
}