mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-21 23:20:20 +00:00
26 lines
450 B
JavaScript
26 lines
450 B
JavaScript
"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()");
|
|
});
|