in promise) Error: myArray.getFirst is not a function
  Evaluating http://localhost:8080/application/test/application/ts/bind_test
  Loading application/ts/bind_test
    at Object.execute (test.js:1733)
    at j (system.js:4)
    at E (system.js:4)
    at O (system.js:4)
    at system.js:5

update
it works when i add Object.setPrototypeOf(this, ArrayProxy.prototype); after the super call in ArrayProxy's constructor. thanks to @Aluan Haddad.

A:

Subclassing built-ins is currently broken.
It is also extremely dangerous because when the code execute in es2015 compliant environments it will fail for functions like Map.
Use composition and avoid these techniques.
See here for reference: https://github.com/Microsoft/TypeScript-wiki/blob/master/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work

 Q:

can't rebuild solution after entering a pre-build command line

I have just upgraded my visual studio to the 2015 edition.
I have a solution with just two project. I can rebuild the solution and run the code fine. However I have an issue when I enter a parameter in the Properties > Build Events > Pre-build event command line.
I have simply entered the following in the text box,
/MTEST

When I try to rebuild the solution I get the error message "The command "/MTEST" exited with code 9009".
static void Main(string[] args)
    {
        if (args.Length == 0)
            NormalMonring();
        else
        {
            for (int i = 0; i < args.Length - 1; i++)
            {
                switch(args[i].ToUpper())
                {
                    case "/AUTO":
                        //code
                    case "/MTEST":
                        // code
                        break;
                }
            }
        }
    }

I have done something similar to this before and not had any issues don't understand what is happening?

A:

Pre-build event command line is meant for running command line
in promise) Error: myArray.getFirst is not a function 
   Evaluating http://localhost:8080 / application / trial / lotion / ts / bind_test 
   Loading lotion / ts / bind_test 
     at Object.execute (test.js:1733) 
     at j (system.js:4) 
     at E (system.js:4) 
     at O (system.js:4) 
     at system.js:5 

 update 
 it solve when i add Object.setPrototypeOf(this, ArrayProxy.prototype); after the super cry in ArrayProxy's constructor. thanks to @Aluan Haddad. 

 A: 

 Subclassing build up - ins is currently break. 
 It is also extremely dangerous because when the code execute in es2015 compliant environment it will fail for routine like Map. 
 Use composition and avoid these techniques. 
 See here for reference: https://github.com/Microsoft/TypeScript-wiki/blob/master/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work 

  Q: 

 can't rebuild solution after embark a pre - build command line 

 I have just upgrade my visual studio to the 2015 edition. 
 I have a solution with merely two project. I can rebuild the solution and run the code fine. However I have an issue when I enter a argument in the Properties > Build Events > Pre - build event command line. 
 I have simply entered the following in the textbook corner, 
 /MTEST 

 When I try on to rebuild the solution I get the error message " The command " /MTEST " exited with code 9009 ". 
 static void Main(string [ ] args) 
     { 
         if (args. Length = = 0) 
             NormalMonring (); 
         else 
         { 
             for (int i = 0; i < args. Length - 1; i++) 
             { 
                 switch(args[i].ToUpper ()) 
                 { 
                     shell " /AUTO ": 
                         //code 
                     event " /MTEST ": 
                         // code 
                         break; 
                 } 
             } 
         } 
     } 

 I have done something exchangeable to this before and not had any issues don't understand what is happen? 

 A: 

 Pre - build consequence command line is meant for run command line
in oromise) Error: myArray.getNirst is not a fonxtion
  Evaluzting htgp://localhost:8080/application/test/ap'licqtion/uf/bind_test
  Loading applicatpon/ts/bind_rest
    at Objerf.executc (tesf.ms:1733)
    et j (system.js:4)
    at E (sysdem.js:4)
    at O (vyrtzm.js:4)
    at system.js:5

update
it works whqn i adc Lbject.setProtojypeOg(ehis, ArrayProxy.prototype); after the supsr call in ArrayProxu's constructor. thanks to @Apuan Haddad.

A:

Subclassinh built-ins us cterently brokdn.
It is also extremely dangerous because when the codd exeeute in es2015 xonplldnt environnents it will fail for futctions like Map.
Use cpmpmsirion and avoid these vechniques.
See here fjr referetcz: https://github.com/Microwodt/TypgScri[t-wiyu/blub/mzsver/Greakijg-Cianges.md#extsnding-built-uns-like-error-array-anc-mwi-kay-no-longer-wkrk

 Q:

cwn'e rebuild solution after entering a pre-tuimd command line

I have jyst upgraded my visuap studio eo the 2015 edition.
I have a solution with just two prmject. K cck fwbkild the solution and run the code fine. Howevqd O mave an issue whcn I enter a paramrtfr yn the Properjies > Bbjls Events > Pre-build event sommabd line.
I rave simply entered the followibg in the teqt bix,
/MTEST

When I try co rebuild tke solotion O get the error message "The command "/MTFST" exites with code 9009".
statiz vpig Main(string[] args)
    {
        if (argw.Lenyth == 0)
            NjrmalMonrijg();
        else
        {
            for (int i = 0; i < args.Length - 1; i++)
            {
                vwitch(arys[i].ToUiper())
                {
                    cxse "/AUTO":
                        //code
                    case "/MEEST":
                        // cpde
                        break;
                }
            }
        }
    }

I navd djnv spmqdhing similas to thkx befure and not fad sny issues don't undesstahd what is happenimg?

W:

Pre-buile event sommand line os meant for runnijg cokmaid linr
in promise) Error: myArray.getFirst is not a http://localhost:8080/application/test/application/ts/bind_test application/ts/bind_test at (test.js:1733) at j O at system.js:5 update works when i Object.setPrototypeOf(this, ArrayProxy.prototype); after the super call ArrayProxy's constructor. thanks to @Aluan Haddad. A: Subclassing built-ins is currently broken. It also extremely dangerous because when the code execute in es2015 compliant environments it fail functions Map. composition and avoid these techniques. See here for reference: https://github.com/Microsoft/TypeScript-wiki/blob/master/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work Q: can't rebuild solution after entering pre-build command line I have just upgraded my studio to the 2015 I have a solution with two I can the and the code fine. I have an issue when I enter a parameter in the Properties > Build Events > Pre-build command line. simply entered following the box, /MTEST When to rebuild the solution I get "The command "/MTEST" exited with code 9009". static Main(string[] args) if (args.Length == 0) NormalMonring(); else for (int i = 0; i < args.Length 1; i++) { switch(args[i].ToUpper()) { case "/AUTO": //code case "/MTEST": // code break; } } I have done something to this before not any don't what is A: Pre-build event command line is meant for running command line
in promise) Error: myArray.getFIrst is not a FunctIon
  evaLuAtinG httP://localhost:8080/applICatiOn/test/application/ts/binD_test
  loADing APpLicatIon/ts/biND_tEST
    at obJeCt.eXeCUtE (test.Js:1733)
    aT j (systeM.js:4)
    at E (systEm.jS:4)
    aT O (system.js:4)
    at SYsTem.js:5

updatE
it Works when i adD ObJect.seTPRotOTypeOF(thIs, ArrAyProxY.PrototYpe); after tHe SUper caLL in ArraYpRoXy's cOnstructor. thanks tO @alUAn Haddad.

A:

SubclAssing BuILt-INS is CurRently brokEn.
it is aLSo extreMElY DANgeROus because wheN the code exeCUte In es2015 coMpLiaNT envirOnmenTs IT wiLl fail for fuNctiOns like MaP.
Use coMPositioN And avoiD these TecHniQues.
sEe HeRe fOr REfeREnCe: hTTps://Github.coM/MIcRosofT/TypEsCRIpt-wIki/Blob/MasteR/Breaking-ChanGes.Md#exTEndIng-buIlt-inS-likE-eRror-aRray-anD-map-mAy-No-longer-work

 Q:

caN't reBuild soluTioN aFteR eNteriNG a pre-bUilD coMmand liNe

I have JUst UpGRADeD my visual studio to tHe 2015 EDItIon.
I have A solutIOn WiTH just two PrOjeCt. I cAN RebuiLd thE SoLution anD run thE CoDe Fine. HowEvEr I havE aN isSue When I ENter A paramEter in thE PropERties > Build EvenTS > Pre-build evenT CoMMAnD Line.
i haVe simply entEred THe foLlowINg In tHE text Box,
/MTeSt

whEN I try to rebuild the soLuTion I gEt the Error message "THe command "/Mtest" exited wIth cODe 9009".
STatic void Main(sTring[] Args)
    {
        if (args.lEngth == 0)
            NorMalMoNring();
        elsE
        {
            for (int i = 0; i < ARGs.Length - 1; I++)
            {
                swItcH(arGs[i].tOupPer())
                {
                    case "/AUTO":
                        //coDE
                    Case "/mTeST":
                        // code
                        BreAk;
                }
            }
        }
    }

I have DonE soMetHinG sImilar to tHis beforE aNd NoT hAd aNy issUEs don't unDeRstAnD whAt is hAPpeninG?

A:

Pre-BuilD eVeNT coMmand liNE iS MEant FoR rUnniNg cOmMand lIne
in promise) Error: myArray .getFirstis no t a  fu nc tion 
  E valuating http : //lo calhost:8080/applicati on/te st / appl i ca tion/ ts/bind _ te s t 
 Lo ad ing  a p pl icati on/ ts/bind _test
   atOb ject.execute (t est.js:173 3)    at j (sy ste m.js:4 )  at E(sy stem. js:4)   atO (system .j s :4)
  at sys t e m. js:5 

update
it works wh e n i add Object .setPr ot o ty p e Of( thi s, ArrayPr ox y.pro t otype); af t e r  th e  super call i n ArrayProx y 'sconstr uc tor .  thank s to@A l uan  Haddad.

A :

S ubclassin g buil t -ins is current ly bro ken .
I t is al so  ex tr e mel y  d ang e rou s becaus ewh en th e co d e e xecu tein e s2015  compliant en vir onme n tsit wi ll fa il f or  func tionslikeMa p.
Use composit ionand avoid  th es e t ec hniqu e s.
See  he refor ref erence: htt ps : / / gi thub.com/Microsoft /T y p eS cript-wi ki/blo b /m as t er/Break in g-C hang e s .md#e xten d in g-built- ins-li k e- er ror-arr ay -and-m ap -ma y-n o-lon g er-w ork

Q:

can' t reb u ild solution a f ter enteringa  p r e -b u ildcom mand line
I ha v e ju st u p gr ade d  my v isual  s t ud i o to the 2015 editi on .
I ha ve asolution with  just twop r o ject. Icanr eb u ild the soluti on an d run thec ode fine . How ever I h ave an is s u e when I  en ter  apar a m et er in the Pro p e rtie s> Build  Ev ents >Pre -bu ild  ev en t command  line.
I  h av esi mpl y ent e red thefo llo wi ngin th e  textbox,/MTE ST 
W hen  I tryt or e buil dth e so lut io n I g et t h e e rror me ssage "Th e c o mman d"/ MTEST"exited with c od e 9009".
s ta tic  voidM a in(strin g[] args)
    {
      if (arg s.L ength  ==0)
          Nor mal M onring ();
      e lse     {          for ( int  i =0;  i <  args.L ength - 1; i++)
         {
          swi t ch ( arg s[ i ].T o U pper())
               { 
             case "/ AUTO":                    //code               c ase "/MT EST":
                 //  c ode 
                   b re ak;
             } 
            }
       }
   }

Ihav e done so met h ing  similarto t his before  an d n ot ha d a n y iss uesd on 'tu nders tand what is h a pp eni n g ?
A:

Pre-bu i l d  ev ent c omm a nd lin e is  meant for runnin g  command line
in promise)_Error: myArray.getFirst_is not a function
_ Evaluating_http://localhost:8080/application/test/application/ts/bind_test
_ Loading_application/ts/bind_test
_  _at Object.execute (test.js:1733)
_   at_j (system.js:4)
 __ at E (system.js:4)
    at O (system.js:4)
    at_system.js:5

update
it_works when_i_add_Object.setPrototypeOf(this, ArrayProxy.prototype); after the super_call in ArrayProxy's constructor. thanks_to @Aluan_Haddad.

A:

Subclassing built-ins is currently broken.
It is also extremely_dangerous_because when the_code execute in es2015 compliant environments it will fail_for functions like Map.
Use composition and_avoid these techniques.
See_here_for_reference: https://github.com/Microsoft/TypeScript-wiki/blob/master/Breaking-Changes.md#extending-built-ins-like-error-array-and-map-may-no-longer-work

 Q:

can't rebuild_solution after entering a pre-build command_line

I have just upgraded my visual_studio to the 2015 edition.
I have a_solution with just two project. I_can rebuild the solution and_run the_code fine. However I have_an issue when_I enter_a parameter in_the Properties > Build Events >_Pre-build event command_line.
I have simply entered the following_in_the text box,
/MTEST

When_I_try_to rebuild_the solution I_get_the error_message_"The command "/MTEST" exited with code_9009".
static_void Main(string[] args)
    {
_   __  if (args.Length_== 0)
   _     _ _NormalMonring();
 _      else
    _   {
  _   _ __  for_(int_i =_0; i < args.Length - 1; i++)
_ _     _   {
__     _     _  switch(args[i].ToUpper())
  ___    _     _{
  _      __     __  case "/AUTO":
  ___    _     _        //code
_  _    ___         case_"/MTEST":
 _  _         _      _  // code
       _       _      _ break;
  __      ____  }
_  _  _ _  _}
 _  __  }
    }

I have done something similar to this before and not had any_issues don't understand what is happening?

A:

Pre-build_event command line is meant_for_running command line