mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-02 09:18:52 +00:00
29 lines
381 B
JavaScript
29 lines
381 B
JavaScript
"use strict";
|
|
|
|
load("test-common.js");
|
|
|
|
try {
|
|
assert(isStrictMode());
|
|
|
|
(function () {
|
|
assert(isStrictMode());
|
|
})();
|
|
|
|
(function () {
|
|
"use strict";
|
|
assert(isStrictMode());
|
|
})();
|
|
|
|
(() => {
|
|
assert(isStrictMode());
|
|
})();
|
|
|
|
(() => {
|
|
"use strict";
|
|
assert(isStrictMode());
|
|
})();
|
|
|
|
console.log("PASS");
|
|
} catch (e) {
|
|
console.log("FAIL: " + e);
|
|
}
|