blob: 3bb885a49bb72aaccd22eb98917cad6482bf3f96 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
"use strict";
test("basic functionality", () => {
expect(isStrictMode()).toBeTrue();
(function () {
expect(isStrictMode()).toBeTrue();
})();
(() => {
expect(isStrictMode()).toBeTrue();
})();
(() => {
"use strict";
expect(isStrictMode()).toBeTrue();
})();
function a() {
expect(isStrictMode()).toBeTrue();
}
a();
eval("expect(isStrictMode()).toBeTrue()");
});
|