1
0
forked from Mirror/wren

Handle compile errors in imported modules.

This commit is contained in:
Bob Nystrom
2015-12-08 07:49:37 -08:00
parent bfa86b259a
commit 2df5362ab2
5 changed files with 21 additions and 7 deletions

View File

@ -0,0 +1,2 @@
System.print("before") // expect: before
import "module" for Module // expect runtime error: Could not compile module 'module'.

View File

@ -0,0 +1,2 @@
// nontest
undefined

View File

@ -1 +1 @@
import "does_not_exist" for DoesNotExist // expect runtime error: Could not find module 'does_not_exist'.
import "does_not_exist" for DoesNotExist // expect runtime error: Could not load module 'does_not_exist'.