1
0
Fork 0

pass filename to internal.parse() call

This commit is contained in:
Jan Steemann 2015-07-14 18:23:08 +02:00
parent ad30baa08c
commit f5a7e2120f
2 changed files with 1 additions and 2 deletions

View File

@ -1346,7 +1346,7 @@ function require (path) {
}
// test for parse errors first and fail early if a parse error detected
if (!internal.parse(content)) {
if (!internal.parse(content, filename)) {
throw new internal.ArangoError({
errorNum: internal.errors.ERROR_MODULE_SYNTAX_ERROR.code,
errorMessage: internal.errors.ERROR_MODULE_SYNTAX_ERROR.message

View File

@ -329,7 +329,6 @@ static const uint32_t V8DataSlot = 0;
TRI_V8_THROW_EXCEPTION(TRI_ERROR_NOT_IMPLEMENTED); \
}
////////////////////////////////////////////////////////////////////////////////
/// @brief Return undefined (default..)
/// implicitely requires 'args and 'isolate' to be available