forked from Mirror/wren
Handle compile errors in imported modules.
This commit is contained in:
2
test/language/module/compile_error/compile_error.wren
Normal file
2
test/language/module/compile_error/compile_error.wren
Normal file
@ -0,0 +1,2 @@
|
||||
System.print("before") // expect: before
|
||||
import "module" for Module // expect runtime error: Could not compile module 'module'.
|
||||
2
test/language/module/compile_error/module.wren
Normal file
2
test/language/module/compile_error/module.wren
Normal file
@ -0,0 +1,2 @@
|
||||
// nontest
|
||||
undefined
|
||||
@ -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'.
|
||||
|
||||
Reference in New Issue
Block a user