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