mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
Everywhere: Hoist the Libraries folder to the top-level
This commit is contained in:
committed by
Andreas Kling
parent
950e819ee7
commit
93712b24bf
26
Libraries/LibJS/Tests/program-strict-mode.js
Normal file
26
Libraries/LibJS/Tests/program-strict-mode.js
Normal file
@@ -0,0 +1,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()");
|
||||
});
|
||||
Reference in New Issue
Block a user