1TypeError: Bad operand type, the types of the operands must be same type. [dynamic_instanceof_error.sts:24:11]
2{
3  "type": "Program",
4  "statements": [
5    {
6      "type": "ImportDeclaration",
7      "source": {
8        "type": "StringLiteral",
9        "value": "dynamic_js_import_tests",
10        "loc": {
11          "start": {
12            "line": 20,
13            "column": 20
14          },
15          "end": {
16            "line": 20,
17            "column": 45
18          }
19        }
20      },
21      "specifiers": [
22        {
23          "type": "ImportSpecifier",
24          "local": {
25            "type": "Identifier",
26            "name": "A",
27            "decorators": [],
28            "loc": {
29              "start": {
30                "line": 20,
31                "column": 10
32              },
33              "end": {
34                "line": 20,
35                "column": 11
36              }
37            }
38          },
39          "imported": {
40            "type": "Identifier",
41            "name": "A",
42            "decorators": [],
43            "loc": {
44              "start": {
45                "line": 20,
46                "column": 10
47              },
48              "end": {
49                "line": 20,
50                "column": 11
51              }
52            }
53          },
54          "loc": {
55            "start": {
56              "line": 20,
57              "column": 10
58            },
59            "end": {
60              "line": 20,
61              "column": 11
62            }
63          }
64        }
65      ],
66      "loc": {
67        "start": {
68          "line": 20,
69          "column": 1
70        },
71        "end": {
72          "line": 20,
73          "column": 45
74        }
75      }
76    },
77    {
78      "type": "ClassDeclaration",
79      "definition": {
80        "id": {
81          "type": "Identifier",
82          "name": "ETSGLOBAL",
83          "decorators": [],
84          "loc": {
85            "start": {
86              "line": 1,
87              "column": 1
88            },
89            "end": {
90              "line": 1,
91              "column": 1
92            }
93          }
94        },
95        "superClass": null,
96        "implements": [],
97        "body": [
98          {
99            "type": "MethodDefinition",
100            "key": {
101              "type": "Identifier",
102              "name": "_$init$_",
103              "decorators": [],
104              "loc": {
105                "start": {
106                  "line": 1,
107                  "column": 1
108                },
109                "end": {
110                  "line": 1,
111                  "column": 1
112                }
113              }
114            },
115            "kind": "method",
116            "accessibility": "public",
117            "static": true,
118            "optional": false,
119            "computed": false,
120            "value": {
121              "type": "FunctionExpression",
122              "function": {
123                "type": "ScriptFunction",
124                "id": {
125                  "type": "Identifier",
126                  "name": "_$init$_",
127                  "decorators": [],
128                  "loc": {
129                    "start": {
130                      "line": 1,
131                      "column": 1
132                    },
133                    "end": {
134                      "line": 1,
135                      "column": 1
136                    }
137                  }
138                },
139                "generator": false,
140                "async": false,
141                "expression": false,
142                "params": [],
143                "body": {
144                  "type": "BlockStatement",
145                  "statements": [],
146                  "loc": {
147                    "start": {
148                      "line": 1,
149                      "column": 1
150                    },
151                    "end": {
152                      "line": 1,
153                      "column": 1
154                    }
155                  }
156                },
157                "loc": {
158                  "start": {
159                    "line": 1,
160                    "column": 1
161                  },
162                  "end": {
163                    "line": 1,
164                    "column": 1
165                  }
166                }
167              },
168              "loc": {
169                "start": {
170                  "line": 1,
171                  "column": 1
172                },
173                "end": {
174                  "line": 1,
175                  "column": 1
176                }
177              }
178            },
179            "overloads": [],
180            "decorators": [],
181            "loc": {
182              "start": {
183                "line": 1,
184                "column": 1
185              },
186              "end": {
187                "line": 1,
188                "column": 1
189              }
190            }
191          },
192          {
193            "type": "MethodDefinition",
194            "key": {
195              "type": "Identifier",
196              "name": "foo",
197              "decorators": [],
198              "loc": {
199                "start": {
200                  "line": 22,
201                  "column": 10
202                },
203                "end": {
204                  "line": 22,
205                  "column": 13
206                }
207              }
208            },
209            "kind": "method",
210            "accessibility": "public",
211            "static": true,
212            "optional": false,
213            "computed": false,
214            "value": {
215              "type": "FunctionExpression",
216              "function": {
217                "type": "ScriptFunction",
218                "id": {
219                  "type": "Identifier",
220                  "name": "foo",
221                  "decorators": [],
222                  "loc": {
223                    "start": {
224                      "line": 22,
225                      "column": 10
226                    },
227                    "end": {
228                      "line": 22,
229                      "column": 13
230                    }
231                  }
232                },
233                "generator": false,
234                "async": false,
235                "expression": false,
236                "params": [],
237                "returnType": {
238                  "type": "ETSPrimitiveType",
239                  "loc": {
240                    "start": {
241                      "line": 22,
242                      "column": 17
243                    },
244                    "end": {
245                      "line": 22,
246                      "column": 21
247                    }
248                  }
249                },
250                "body": {
251                  "type": "BlockStatement",
252                  "statements": [
253                    {
254                      "type": "VariableDeclaration",
255                      "declarations": [
256                        {
257                          "type": "VariableDeclarator",
258                          "id": {
259                            "type": "Identifier",
260                            "name": "a",
261                            "decorators": [],
262                            "loc": {
263                              "start": {
264                                "line": 23,
265                                "column": 7
266                              },
267                              "end": {
268                                "line": 23,
269                                "column": 8
270                              }
271                            }
272                          },
273                          "init": {
274                            "type": "NumberLiteral",
275                            "value": 42,
276                            "loc": {
277                              "start": {
278                                "line": 23,
279                                "column": 11
280                              },
281                              "end": {
282                                "line": 23,
283                                "column": 13
284                              }
285                            }
286                          },
287                          "loc": {
288                            "start": {
289                              "line": 23,
290                              "column": 7
291                            },
292                            "end": {
293                              "line": 23,
294                              "column": 13
295                            }
296                          }
297                        }
298                      ],
299                      "kind": "let",
300                      "loc": {
301                        "start": {
302                          "line": 23,
303                          "column": 3
304                        },
305                        "end": {
306                          "line": 23,
307                          "column": 14
308                        }
309                      }
310                    },
311                    {
312                      "type": "VariableDeclaration",
313                      "declarations": [
314                        {
315                          "type": "VariableDeclarator",
316                          "id": {
317                            "type": "Identifier",
318                            "name": "b",
319                            "decorators": [],
320                            "loc": {
321                              "start": {
322                                "line": 24,
323                                "column": 7
324                              },
325                              "end": {
326                                "line": 24,
327                                "column": 8
328                              }
329                            }
330                          },
331                          "init": {
332                            "type": "BinaryExpression",
333                            "operator": "instanceof",
334                            "left": {
335                              "type": "Identifier",
336                              "name": "a",
337                              "decorators": [],
338                              "loc": {
339                                "start": {
340                                  "line": 24,
341                                  "column": 11
342                                },
343                                "end": {
344                                  "line": 24,
345                                  "column": 12
346                                }
347                              }
348                            },
349                            "right": {
350                              "type": "ETSTypeReference",
351                              "part": {
352                                "type": "ETSTypeReferencePart",
353                                "name": {
354                                  "type": "Identifier",
355                                  "name": "A",
356                                  "decorators": [],
357                                  "loc": {
358                                    "start": {
359                                      "line": 24,
360                                      "column": 24
361                                    },
362                                    "end": {
363                                      "line": 24,
364                                      "column": 25
365                                    }
366                                  }
367                                },
368                                "loc": {
369                                  "start": {
370                                    "line": 24,
371                                    "column": 24
372                                  },
373                                  "end": {
374                                    "line": 24,
375                                    "column": 26
376                                  }
377                                }
378                              },
379                              "loc": {
380                                "start": {
381                                  "line": 24,
382                                  "column": 24
383                                },
384                                "end": {
385                                  "line": 24,
386                                  "column": 26
387                                }
388                              }
389                            },
390                            "loc": {
391                              "start": {
392                                "line": 24,
393                                "column": 11
394                              },
395                              "end": {
396                                "line": 24,
397                                "column": 26
398                              }
399                            }
400                          },
401                          "loc": {
402                            "start": {
403                              "line": 24,
404                              "column": 7
405                            },
406                            "end": {
407                              "line": 24,
408                              "column": 26
409                            }
410                          }
411                        }
412                      ],
413                      "kind": "let",
414                      "loc": {
415                        "start": {
416                          "line": 24,
417                          "column": 3
418                        },
419                        "end": {
420                          "line": 24,
421                          "column": 26
422                        }
423                      }
424                    }
425                  ],
426                  "loc": {
427                    "start": {
428                      "line": 22,
429                      "column": 22
430                    },
431                    "end": {
432                      "line": 25,
433                      "column": 2
434                    }
435                  }
436                },
437                "loc": {
438                  "start": {
439                    "line": 22,
440                    "column": 13
441                  },
442                  "end": {
443                    "line": 25,
444                    "column": 2
445                  }
446                }
447              },
448              "loc": {
449                "start": {
450                  "line": 22,
451                  "column": 13
452                },
453                "end": {
454                  "line": 25,
455                  "column": 2
456                }
457              }
458            },
459            "overloads": [],
460            "decorators": [],
461            "loc": {
462              "start": {
463                "line": 22,
464                "column": 1
465              },
466              "end": {
467                "line": 25,
468                "column": 2
469              }
470            }
471          }
472        ],
473        "loc": {
474          "start": {
475            "line": 1,
476            "column": 1
477          },
478          "end": {
479            "line": 1,
480            "column": 1
481          }
482        }
483      },
484      "loc": {
485        "start": {
486          "line": 1,
487          "column": 1
488        },
489        "end": {
490          "line": 1,
491          "column": 1
492        }
493      }
494    },
495    {
496      "type": "ClassDeclaration",
497      "definition": {
498        "id": {
499          "type": "Identifier",
500          "name": "$dynmodule",
501          "decorators": [],
502          "loc": {
503            "start": {
504              "line": 1,
505              "column": 1
506            },
507            "end": {
508              "line": 1,
509              "column": 1
510            }
511          }
512        },
513        "superClass": null,
514        "implements": [],
515        "body": [
516          {
517            "type": "ClassProperty",
518            "key": {
519              "type": "Identifier",
520              "name": "dynamic_js_import_tests0",
521              "decorators": [],
522              "loc": {
523                "start": {
524                  "line": 1,
525                  "column": 1
526                },
527                "end": {
528                  "line": 1,
529                  "column": 1
530                }
531              }
532            },
533            "accessibility": "public",
534            "static": true,
535            "readonly": true,
536            "declare": false,
537            "optional": false,
538            "computed": false,
539            "typeAnnotation": {
540              "type": "OpaqueType",
541              "loc": {
542                "start": {
543                  "line": 1,
544                  "column": 1
545                },
546                "end": {
547                  "line": 1,
548                  "column": 1
549                }
550              }
551            },
552            "definite": false,
553            "decorators": [],
554            "loc": {
555              "start": {
556                "line": 1,
557                "column": 1
558              },
559              "end": {
560                "line": 1,
561                "column": 1
562              }
563            }
564          },
565          {
566            "type": "ClassStaticBlock",
567            "value": {
568              "type": "FunctionExpression",
569              "function": {
570                "type": "ScriptFunction",
571                "id": {
572                  "type": "Identifier",
573                  "name": "<cctor>",
574                  "decorators": [],
575                  "loc": {
576                    "start": {
577                      "line": 1,
578                      "column": 1
579                    },
580                    "end": {
581                      "line": 1,
582                      "column": 1
583                    }
584                  }
585                },
586                "generator": false,
587                "async": false,
588                "expression": true,
589                "params": [],
590                "body": {
591                  "type": "BlockStatement",
592                  "statements": [
593                    {
594                      "type": "ExpressionStatement",
595                      "expression": {
596                        "type": "AssignmentExpression",
597                        "operator": "=",
598                        "left": {
599                          "type": "MemberExpression",
600                          "object": {
601                            "type": "Identifier",
602                            "name": "$dynmodule",
603                            "decorators": [],
604                            "loc": {
605                              "start": {
606                                "line": 1,
607                                "column": 1
608                              },
609                              "end": {
610                                "line": 1,
611                                "column": 1
612                              }
613                            }
614                          },
615                          "property": {
616                            "type": "Identifier",
617                            "name": "dynamic_js_import_tests0",
618                            "decorators": [],
619                            "loc": {
620                              "start": {
621                                "line": 1,
622                                "column": 1
623                              },
624                              "end": {
625                                "line": 1,
626                                "column": 1
627                              }
628                            }
629                          },
630                          "computed": false,
631                          "optional": false,
632                          "loc": {
633                            "start": {
634                              "line": 1,
635                              "column": 1
636                            },
637                            "end": {
638                              "line": 1,
639                              "column": 1
640                            }
641                          }
642                        },
643                        "right": {
644                          "type": "CallExpression",
645                          "callee": {
646                            "type": "MemberExpression",
647                            "object": {
648                              "type": "Identifier",
649                              "name": "JSRuntime",
650                              "decorators": [],
651                              "loc": {
652                                "start": {
653                                  "line": 1,
654                                  "column": 1
655                                },
656                                "end": {
657                                  "line": 1,
658                                  "column": 1
659                                }
660                              }
661                            },
662                            "property": {
663                              "type": "Identifier",
664                              "name": "loadModule",
665                              "decorators": [],
666                              "loc": {
667                                "start": {
668                                  "line": 1,
669                                  "column": 1
670                                },
671                                "end": {
672                                  "line": 1,
673                                  "column": 1
674                                }
675                              }
676                            },
677                            "computed": false,
678                            "optional": false,
679                            "loc": {
680                              "start": {
681                                "line": 1,
682                                "column": 1
683                              },
684                              "end": {
685                                "line": 1,
686                                "column": 1
687                              }
688                            }
689                          },
690                          "arguments": [
691                            {
692                              "type": "StringLiteral",
693                              "value": "dynamic_js_import_tests",
694                              "loc": {
695                                "start": {
696                                  "line": 1,
697                                  "column": 1
698                                },
699                                "end": {
700                                  "line": 1,
701                                  "column": 1
702                                }
703                              }
704                            }
705                          ],
706                          "optional": false,
707                          "loc": {
708                            "start": {
709                              "line": 1,
710                              "column": 1
711                            },
712                            "end": {
713                              "line": 1,
714                              "column": 1
715                            }
716                          }
717                        },
718                        "loc": {
719                          "start": {
720                            "line": 1,
721                            "column": 1
722                          },
723                          "end": {
724                            "line": 1,
725                            "column": 1
726                          }
727                        }
728                      },
729                      "loc": {
730                        "start": {
731                          "line": 1,
732                          "column": 1
733                        },
734                        "end": {
735                          "line": 1,
736                          "column": 1
737                        }
738                      }
739                    }
740                  ],
741                  "loc": {
742                    "start": {
743                      "line": 1,
744                      "column": 1
745                    },
746                    "end": {
747                      "line": 1,
748                      "column": 1
749                    }
750                  }
751                },
752                "loc": {
753                  "start": {
754                    "line": 1,
755                    "column": 1
756                  },
757                  "end": {
758                    "line": 1,
759                    "column": 1
760                  }
761                }
762              },
763              "loc": {
764                "start": {
765                  "line": 1,
766                  "column": 1
767                },
768                "end": {
769                  "line": 1,
770                  "column": 1
771                }
772              }
773            },
774            "loc": {
775              "start": {
776                "line": 1,
777                "column": 1
778              },
779              "end": {
780                "line": 1,
781                "column": 1
782              }
783            }
784          },
785          {
786            "type": "MethodDefinition",
787            "key": {
788              "type": "Identifier",
789              "name": "init",
790              "decorators": [],
791              "loc": {
792                "start": {
793                  "line": 1,
794                  "column": 1
795                },
796                "end": {
797                  "line": 1,
798                  "column": 1
799                }
800              }
801            },
802            "kind": "method",
803            "accessibility": "public",
804            "static": true,
805            "optional": false,
806            "computed": false,
807            "value": {
808              "type": "FunctionExpression",
809              "function": {
810                "type": "ScriptFunction",
811                "id": {
812                  "type": "Identifier",
813                  "name": "init",
814                  "decorators": [],
815                  "loc": {
816                    "start": {
817                      "line": 1,
818                      "column": 1
819                    },
820                    "end": {
821                      "line": 1,
822                      "column": 1
823                    }
824                  }
825                },
826                "generator": false,
827                "async": false,
828                "expression": false,
829                "params": [],
830                "returnType": {
831                  "type": "OpaqueType",
832                  "loc": {
833                    "start": {
834                      "line": 1,
835                      "column": 1
836                    },
837                    "end": {
838                      "line": 1,
839                      "column": 1
840                    }
841                  }
842                },
843                "body": {
844                  "type": "BlockStatement",
845                  "statements": [],
846                  "loc": {
847                    "start": {
848                      "line": 1,
849                      "column": 1
850                    },
851                    "end": {
852                      "line": 1,
853                      "column": 1
854                    }
855                  }
856                },
857                "loc": {
858                  "start": {
859                    "line": 1,
860                    "column": 1
861                  },
862                  "end": {
863                    "line": 1,
864                    "column": 1
865                  }
866                }
867              },
868              "loc": {
869                "start": {
870                  "line": 1,
871                  "column": 1
872                },
873                "end": {
874                  "line": 1,
875                  "column": 1
876                }
877              }
878            },
879            "overloads": [],
880            "decorators": [],
881            "loc": {
882              "start": {
883                "line": 1,
884                "column": 1
885              },
886              "end": {
887                "line": 1,
888                "column": 1
889              }
890            }
891          }
892        ],
893        "loc": {
894          "start": {
895            "line": 1,
896            "column": 1
897          },
898          "end": {
899            "line": 1,
900            "column": 1
901          }
902        }
903      },
904      "loc": {
905        "start": {
906          "line": 1,
907          "column": 1
908        },
909        "end": {
910          "line": 1,
911          "column": 1
912        }
913      }
914    }
915  ],
916  "loc": {
917    "start": {
918      "line": 1,
919      "column": 1
920    },
921    "end": {
922      "line": 26,
923      "column": 1
924    }
925  }
926}
927