> On 5 Feb 2015, at 11:04, Leon Arnott <leonarn...@gmail.com> wrote: > > Well, that isn't quite the full story - if it were just a case of pragmas > having to use something, anything, that could pass ES3 engines, then there > wouldn't necessarily be two otherwise-redundant forms of the syntax - `"use > strict"` and `'use strict'`. The reason those exist is to save the author > remembering which string delimiter to use - it mirrors the string literal > syntax exactly.
If that were the case, then e.g. `'\x75\x73\x65\x20\x73\x74\x72\x69\x63\x74'` would trigger strict mode. (It doesn’t, and that’s a good thing.) _______________________________________________ es-discuss mailing list es-discuss@mozilla.org https://mail.mozilla.org/listinfo/es-discuss