0

I have this error when running Javastrict.

Deleting local variable in strict mode 

I understood this is because of strict mode.

I am using Titanum and this compiler shows only this message. So I don't know where the local variable is.

Generally point of view, is there any checker or compiler for javascript?

I would like to find where to occur error.

Rene Pot
  • 24,681
  • 7
  • 68
  • 92
whitebear
  • 11,200
  • 24
  • 114
  • 237
  • It is not Titanium related, but actually strict mode related. You can find more here https://stackoverflow.com/questions/16652589/why-is-delete-not-allowed-in-javascript5-strict-mode – Rene Pot Mar 02 '18 at 14:37
  • in general, in strict mode you can't delete variables, only properties. check your code where it's happening and change it – guijob Mar 02 '18 at 14:41
  • I see I found where using `delete`. Thank you very much. At first glance, I thought this error means 'please delete local variables' – whitebear Mar 03 '18 at 03:16

0 Answers0