File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
plugins/org.eclipse.dltk.javascript.core/src/org/eclipse/dltk/javascript/typeinfo Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 19
19
import org .eclipse .core .runtime .RegistryFactory ;
20
20
import org .eclipse .dltk .javascript .core .JavaScriptPlugin ;
21
21
import org .eclipse .dltk .javascript .core .Types ;
22
+ import org .eclipse .dltk .javascript .internal .core .ThreadTypeSystemImpl ;
22
23
import org .eclipse .dltk .javascript .typeinfo .model .JSType ;
23
24
import org .eclipse .dltk .javascript .typeinfo .model .Member ;
24
25
import org .eclipse .dltk .javascript .typeinfo .model .Type ;
@@ -193,7 +194,11 @@ public static IRArrayType arrayOf(ITypeSystem typeSystem,
193
194
}
194
195
195
196
public static IRType create (JSType type ) {
196
- return create (null , type );
197
+ ITypeSystem current = ITypeSystem .CURRENT .get ();
198
+ if (current == null ) {
199
+ current = ThreadTypeSystemImpl .DELEGATING_TYPE_SYSTEM ;
200
+ }
201
+ return create (current , type );
197
202
}
198
203
199
204
public static IRType create (ITypeSystem context , JSType type ) {
You can’t perform that action at this time.
0 commit comments