Timeline for What does "use strict" do in JavaScript, and what is the reasoning behind it?
Current License: CC BY-SA 4.0
82 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Apr 25, 2024 at 18:53 | comment | added | OrangeDog | @BenjaminGruenbaum did you? Not only are they analysing code to find programming errors, they also did not invent strict mode in order to do it. | |
| Apr 25, 2024 at 18:00 | comment | added | Benjamin Gruenbaum | @OrangeDog no, that's being lexically analyzable in order to run escape analysis and prove a malware doesn't have access to an API it shouldn't. Did you actually read the paper I cited? | |
| Apr 24, 2024 at 23:01 | comment | added | OrangeDog | @BenjaminGruenbaum those are programming errors | |
| Apr 24, 2024 at 17:53 | comment | added | Benjamin Gruenbaum | @OrangeDog no, it was to statically analyze Google's ad code to prevent injection and sandbox escpe - see static.googleusercontent.com/media/research.google.com/en//pubs/… | |
| Apr 22, 2024 at 8:37 | comment | added | OrangeDog | @BenjaminGruenbaum but the reason to make it statically analysable is so it can be analysed by tools looking to prevent programming errors | |
| Feb 16, 2024 at 11:48 | answer | added | Hammad khan | timeline score: 0 | |
| Jun 11, 2023 at 18:08 | answer | added | moaz ahmad | timeline score: 1 | |
| Sep 30, 2022 at 7:11 | comment | added | Mikko Rantalainen | And the reason for the weird syntax (magic string as a statement) is to make it backwards compatible with older JavaScript engines. The idea of strict mode is to disallow some problematic JavaScript language constructs but not change the interpretation of the code so the execution will be identical regardless if the JavaScript engine actually supports strict mode or not. | |
| Jul 5, 2022 at 13:59 | history | rollback | Mark Rogers |
Rollback to Revision 27
|
|
| Jul 5, 2022 at 7:33 | history | edited | Mateen Ulhaq | CC BY-SA 4.0 |
Shorten for quicker reading.
|
| Jun 20, 2022 at 22:36 | answer | added | Amin Azimi | timeline score: 4 | |
| May 1, 2022 at 7:16 | review | Suggested edits | |||
| May 1, 2022 at 14:41 | |||||
| Jul 25, 2021 at 7:14 | answer | added | snnsnn | timeline score: 8 | |
| Jul 10, 2020 at 7:21 | answer | added | shuberman | timeline score: 7 | |
| Sep 6, 2019 at 11:40 | comment | added | Benjamin Gruenbaum | The answers here are old but they are wrong. The main reasoning for strict mode was not to prevent programming errors - it was to make JavaScript lexically scoped so it could be statically analysable :] | |
| Jul 8, 2019 at 8:46 | answer | added | Jerin K Alexander | timeline score: 7 | |
| Jan 28, 2019 at 10:42 | answer | added | Ashish | timeline score: 9 | |
| Apr 25, 2018 at 15:36 | history | reopened |
DarthJDG Kami Narendra Jadhav SpiritCrusher Andrii Omelchenko |
||
| Apr 25, 2018 at 12:03 | review | Reopen votes | |||
| Apr 25, 2018 at 15:36 | |||||
| Apr 25, 2018 at 12:01 | history | closed | samliew | Needs more focus | |
| Aug 31, 2017 at 19:42 | review | Suggested edits | |||
| Aug 31, 2017 at 23:20 | |||||
| Jun 3, 2017 at 4:04 | review | Suggested edits | |||
| Jun 3, 2017 at 5:11 | |||||
| May 22, 2017 at 12:38 | answer | added | Alireza | timeline score: 45 | |
| Jan 23, 2017 at 1:30 | history | rollback | Mark Rogers |
Rollback to Revision 19
|
|
| Dec 21, 2016 at 11:06 | history | edited | Vikrant | CC BY-SA 3.0 |
added 1 character in body
|
| Nov 20, 2016 at 16:23 | answer | added | Bikash Chapagain | timeline score: 14 | |
| Nov 18, 2016 at 9:53 | answer | added | Pritam Banerjee | timeline score: 19 | |
| Nov 11, 2016 at 5:40 | answer | added | Rabin Pantha | timeline score: 15 | |
| Oct 17, 2016 at 13:59 | answer | added | Wesam | timeline score: 14 | |
| Sep 8, 2016 at 9:00 | review | Suggested edits | |||
| Sep 8, 2016 at 9:56 | |||||
| Aug 21, 2016 at 21:43 | answer | added | Tân | timeline score: 34 | |
| Jul 24, 2016 at 18:59 | history | rollback | Mark Rogers |
Rollback to Revision 23
|
|
| Jul 22, 2016 at 15:32 | history | edited | Steve Chambers | CC BY-SA 3.0 |
Attempted to make the title more concise
|
| May 17, 2016 at 22:31 | answer | added | Ivan | timeline score: 17 | |
| May 3, 2016 at 12:59 | answer | added | FilippoG | timeline score: 15 | |
| Apr 12, 2016 at 0:25 | answer | added | Oriol | timeline score: 25 | |
| Feb 15, 2016 at 14:59 | history | rollback | Mark Rogers |
Rollback to Revision 21
|
|
| Feb 15, 2016 at 8:59 | history | edited | Peter Olson | CC BY-SA 3.0 |
For contesting this edit, go to the meta discussion http://meta.stackoverflow.com/questions/316884/should-we-add-links-between-duplicate-questions-in-different-languages
|
| Feb 15, 2016 at 4:37 | history | rollback | Mark Rogers |
Rollback to Revision 19
|
|
| Feb 15, 2016 at 2:12 | history | edited | Peter Olson | CC BY-SA 3.0 |
added 164 characters in body
|
| Jan 29, 2016 at 11:35 | answer | added | sampathsris | timeline score: 266 | |
| Dec 23, 2015 at 3:10 | answer | added | zangw | timeline score: 74 | |
| May 15, 2015 at 6:58 | answer | added | Ely | timeline score: 118 | |
| Apr 29, 2015 at 10:10 | answer | added | Heich-B | timeline score: 50 | |
| Feb 20, 2015 at 1:38 | history | edited | Kevin Brown-Silva |
Burninating [crockford] per http://meta.stackoverflow.com/q/253760/359284
|
|
| Dec 15, 2014 at 15:26 | history | rollback | Mark Rogers |
Rollback to Revision 16
|
|
| Dec 15, 2014 at 14:52 | history | edited | Amit Joki | CC BY-SA 3.0 |
deleted 8 characters in body
|
| Nov 24, 2014 at 21:22 | answer | added | gprasant | timeline score: 885 | |
| Oct 29, 2014 at 16:47 | review | Suggested edits | |||
| Oct 29, 2014 at 17:18 | |||||
| Oct 21, 2014 at 13:31 | answer | added | Shubh | timeline score: 105 | |
| Sep 5, 2014 at 12:53 | answer | added | Purple Dragon | timeline score: 61 | |
| Jun 27, 2014 at 2:53 | history | rollback | Mark Rogers |
Rollback to Revision 12
|
|
| Jun 27, 2014 at 2:52 | history | rollback | Mark Rogers |
Rollback to Revision 13
|
|
| Jun 17, 2014 at 1:21 | history | edited | Matt Fenwick |
edited tags
|
|
| Jun 17, 2014 at 1:21 | history | rollback | Matt Fenwick |
Rollback to Revision 9
|
|
| Mar 29, 2014 at 0:47 | answer | added | FutureNerd | timeline score: 39 | |
| Mar 27, 2014 at 12:18 | answer | added | Renganathan M G | timeline score: 72 | |
| Mar 3, 2014 at 7:37 | answer | added | DWoldrich | timeline score: 272 | |
| Jul 5, 2013 at 19:38 | answer | added | Pank | timeline score: 171 | |
| Jun 10, 2013 at 5:02 | history | protected | NullPoiиteя | ||
| May 31, 2013 at 18:29 | answer | added | user2436758 | timeline score: 69 | |
| Feb 16, 2013 at 5:18 | review | Close votes | |||
| Feb 16, 2013 at 17:07 | |||||
| Oct 30, 2012 at 5:36 | history | edited | hippietrail |
use-strict tag
|
|
| Aug 10, 2012 at 12:05 | history | suggested | lorem monkey | CC BY-SA 3.0 |
removed thanks
|
| Aug 10, 2012 at 12:03 | review | Suggested edits | |||
| Aug 10, 2012 at 12:05 | |||||
| Jul 15, 2012 at 23:25 | answer | added | Jamie Hutber | timeline score: 493 | |
| May 9, 2012 at 17:29 | review | Suggested edits | |||
| May 9, 2012 at 20:56 | |||||
| May 9, 2012 at 15:13 | history | rollback | Mark Rogers |
Rollback to Revision 8
|
|
| May 4, 2012 at 15:54 | history | rollback | Matt Fenwick |
Rollback to Revision 7
|
|
| Apr 3, 2012 at 15:46 | history | rollback | Mark Rogers |
Rollback to Revision 6
|
|
| Apr 1, 2012 at 9:12 | history | edited | G S | CC BY-SA 3.0 |
Removed fluff
|
| S Mar 30, 2012 at 1:41 | history | suggested | Anish Gupta | CC BY-SA 3.0 |
improved formatting, spelling and grammar
|
| Mar 29, 2012 at 18:03 | review | Suggested edits | |||
| S Mar 30, 2012 at 1:41 | |||||
| Mar 10, 2012 at 3:31 | answer | added | Stephen | timeline score: 80 | |
| Mar 4, 2010 at 21:25 | history | edited | Mark Rogers | CC BY-SA 2.5 |
changed sentence structure
|
| Jan 8, 2010 at 20:48 | history | edited | Mark Rogers | CC BY-SA 2.5 |
sentence was long and content of question was better specified later
|
| Dec 31, 2009 at 2:24 | history | edited | Mark Rogers | CC BY-SA 2.5 |
deleted 11 characters in body
|
| Aug 26, 2009 at 16:25 | vote | accept | Mark Rogers | ||
| Aug 26, 2009 at 16:25 | history | edited | Mark Rogers | CC BY-SA 2.5 |
added 105 characters in body
|
| Aug 26, 2009 at 16:15 | answer | added | Pascal MARTIN | timeline score: 5527 | |
| Aug 26, 2009 at 16:14 | answer | added | seth | timeline score: 1445 | |
| Aug 26, 2009 at 16:10 | history | asked | Mark Rogers | CC BY-SA 2.5 |