forked from Mirror/wren
Move test and tweak code a bit.
This commit is contained in:
@ -3420,11 +3420,8 @@ void definition(Compiler* compiler)
|
|||||||
ObjFn* wrenCompile(WrenVM* vm, ObjModule* module, const char* source,
|
ObjFn* wrenCompile(WrenVM* vm, ObjModule* module, const char* source,
|
||||||
bool isExpression, bool printErrors)
|
bool isExpression, bool printErrors)
|
||||||
{
|
{
|
||||||
// Skip potential UTF-8 BOM
|
// Skip the UTF-8 BOM if there is one.
|
||||||
if (strncmp(source, "\xEF\xBB\xBF", 3) == 0)
|
if (strncmp(source, "\xEF\xBB\xBF", 3) == 0) source += 3;
|
||||||
{
|
|
||||||
source += 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
Parser parser;
|
Parser parser;
|
||||||
parser.vm = vm;
|
parser.vm = vm;
|
||||||
|
|||||||
Reference in New Issue
Block a user