1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:28:11 +00:00

LibJS: Add tests for strict mode and strict mode propagation

This commit is contained in:
davidot 2021-07-12 01:39:03 +02:00 committed by Andreas Kling
parent f8a869f2fc
commit 295192bf15
2 changed files with 69 additions and 0 deletions

View file

@ -15,4 +15,12 @@ test("basic functionality", () => {
"use strict";
expect(isStrictMode()).toBeTrue();
})();
function a() {
expect(isStrictMode()).toBeTrue();
}
a();
eval("expect(isStrictMode()).toBeTrue()");
});