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