mirror of
https://github.com/konsoletyper/teavm.git
synced 2025-01-06 10:15:18 +08:00
This commit is contained in:
parent
194356d3a3
commit
5a1810c5e5
@ -251,6 +251,10 @@ class JavascriptNativeProcessor {
|
||||
}
|
||||
|
||||
public void addFunctorField(ClassHolder cls, MethodReference method) {
|
||||
if (cls.getAnnotations().get(FunctorImpl.class.getName()) != null) {
|
||||
return;
|
||||
}
|
||||
|
||||
FieldHolder field = new FieldHolder("$$jso_functor$$");
|
||||
field.setLevel(AccessLevel.PUBLIC);
|
||||
field.setType(ValueType.parse(JSObject.class));
|
||||
|
Loading…
Reference in New Issue
Block a user