Fix line number reporting in scripts when lookups are enabled
For regular object property lookups, we correctly store the byte code instruction pointer that allows us to determine the correct line number in case of a reference error. We need to do the same for lookups in the global object. Change-Id: I0f44dd06b5f66df9626576eeaa802b18fa4a26cd Reviewed-by: Lars Knoll <lars.knoll@qt.io>
This commit is contained in:
parent
ea725e1b54
commit
3a025d75fd
|
@ -550,6 +550,7 @@ QV4::ReturnedValue VME::interpret(CppStackFrame *frame, ExecutionEngine *engine,
|
|||
MOTH_END_INSTR(LoadName)
|
||||
|
||||
MOTH_BEGIN_INSTR(LoadGlobalLookup)
|
||||
STORE_IP();
|
||||
QV4::Lookup *l = function->compilationUnit->runtimeLookups + index;
|
||||
acc = l->globalGetter(l, engine);
|
||||
CHECK_EXCEPTION;
|
||||
|
|
Loading…
Reference in New Issue