scriptName = "undefined"; return new SourceLocation(scriptName, sourceLocation.getInteger(POSITION), sourceLocation.getInteger(LINE),
scriptName = "undefined"; return new SourceLocation(scriptName, sourceLocation.getInteger(POSITION), sourceLocation.getInteger(LINE),
/** * Returns the SourceLocation of this Frame. * * @return The SourceLocation of this Frame. */ public SourceLocation getSourceLocation() { V8Object sourceLocation = v8Object.executeObjectFunction(SOURCE_LOCATION, null); try { V8Object scriptObject = (V8Object) sourceLocation.get(SCRIPT); String scriptName = scriptObject.getString(NAME); scriptObject.release(); return new SourceLocation(scriptName, sourceLocation.getInteger(POSITION), sourceLocation.getInteger(LINE), sourceLocation.getInteger(COLUMN), sourceLocation.getInteger(START), sourceLocation.getInteger(END)); } finally { sourceLocation.release(); } }
/** * Returns the SourceLocation of this Frame. * * @return The SourceLocation of this Frame. */ public SourceLocation getSourceLocation() { V8Object sourceLocation = v8Object.executeObjectFunction(SOURCE_LOCATION, null); try { V8Object scriptObject = (V8Object) sourceLocation.get(SCRIPT); String scriptName = scriptObject.getString(NAME); scriptObject.release(); return new SourceLocation(scriptName, sourceLocation.getInteger(POSITION), sourceLocation.getInteger(LINE), sourceLocation.getInteger(COLUMN), sourceLocation.getInteger(START), sourceLocation.getInteger(END)); } finally { sourceLocation.release(); } }