mirror of https://gitee.com/bigwinds/arangodb
pass filename to internal.parse() call
This commit is contained in:
parent
ad30baa08c
commit
f5a7e2120f
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue