mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
Minor bugfixes
This commit is contained in:
parent
6d45f57a39
commit
7fd414c84e
|
@ -312,9 +312,6 @@ public class DependencyChecker implements DependencyInfo {
|
|||
private Set<MethodReference> methodsAddedByRoot = new HashSet<>();
|
||||
|
||||
public MethodDependency linkMethod(MethodReference methodRef, CallLocation callLocation) {
|
||||
if (completing && getMethod(methodRef) == null) {
|
||||
throw new IllegalStateException("Can't submit class during completion phase");
|
||||
}
|
||||
if (methodRef == null) {
|
||||
throw new IllegalArgumentException();
|
||||
}
|
||||
|
@ -322,6 +319,10 @@ public class DependencyChecker implements DependencyInfo {
|
|||
if (methodReader != null) {
|
||||
methodRef = methodReader.getReference();
|
||||
}
|
||||
|
||||
if (completing && getMethod(methodRef) == null) {
|
||||
throw new IllegalStateException("Can't submit class during completion phase");
|
||||
}
|
||||
callGraph.getNode(methodRef);
|
||||
boolean added = true;
|
||||
if (callLocation != null && callLocation.getMethod() != null) {
|
||||
|
|
|
@ -196,7 +196,9 @@ public class Renderer implements ExprVisitor, StatementVisitor, RenderingContext
|
|||
|
||||
@Override
|
||||
public Properties getProperties() {
|
||||
return new Properties(properties);
|
||||
Properties properties = new Properties();
|
||||
properties.putAll(this.properties);
|
||||
return properties;
|
||||
}
|
||||
|
||||
public DebugInformationEmitter getDebugEmitter() {
|
||||
|
|
|
@ -68,6 +68,7 @@ public interface Location extends JSObject {
|
|||
@JSProperty
|
||||
String getHash();
|
||||
|
||||
@JSProperty
|
||||
void setHash(String hash);
|
||||
|
||||
void assign(String url);
|
||||
|
|
|
@ -34,7 +34,6 @@ import org.teavm.jso.dom.xml.NodeList;
|
|||
public interface HTMLElement extends Element, ElementCSSInlineStyle, EventTarget, FocusEventTarget, MouseEventTarget,
|
||||
KeyboardEventTarget, LoadEventTarget {
|
||||
@Override
|
||||
@JSProperty
|
||||
NodeList<? extends HTMLElement> getElementsByTagName(String name);
|
||||
|
||||
@JSProperty
|
||||
|
|
Loading…
Reference in New Issue
Block a user