program-strict-mode.js 323 B

123456789101112131415161718
  1. "use strict";
  2. test("basic functionality", () => {
  3. expect(isStrictMode()).toBeTrue();
  4. (function () {
  5. expect(isStrictMode()).toBeTrue();
  6. })();
  7. (() => {
  8. expect(isStrictMode()).toBeTrue();
  9. })();
  10. (() => {
  11. "use strict";
  12. expect(isStrictMode()).toBeTrue();
  13. })();
  14. });