Fix a case where snippet is specified twice

When importing a file across multiple locations in a module make sure it
doesn't trip an assert and it works as expected.
This commit is contained in:
Alex Crichton
2019-02-26 08:30:59 -08:00
parent 6283169a30
commit 7e62aff1ce
3 changed files with 28 additions and 6 deletions

View File

@ -1,3 +1,9 @@
export function get_two() {
return 2;
}
let a = 0;
export function get_stateful() {
a += 1;
return a;
}