You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Getting the scriptName results in an NPE. This is because we are getting null back for the script name from V8. It's not clear if this is a bug in V8 or something that has changed and we need to adapt.
public void testGetSourceLocation() {
handleBreak(new BreakHandler() {
@Override
public void onBreak(final DebugEvent event, final ExecutionState state, final EventData eventData, final V8Object data) {
Frame frame = state.getFrame(0);
result = frame.getSourceLocation();
frame.release();
}
});
v8.executeScript(script, "script", 0);
assertEquals(5, ((SourceLocation) result).getLine());
assertEquals("script", ((SourceLocation) result).getScriptName());
assertEquals(0, ((SourceLocation) result).getColumn());
}
The text was updated successfully, but these errors were encountered:
Getting the
scriptName
results in an NPE. This is because we are gettingnull
back for the script name from V8. It's not clear if this is a bug in V8 or something that has changed and we need to adapt.The text was updated successfully, but these errors were encountered: