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:
parent
f8a869f2fc
commit
295192bf15
2 changed files with 69 additions and 0 deletions
|
@ -15,4 +15,12 @@ test("basic functionality", () => {
|
|||
"use strict";
|
||||
expect(isStrictMode()).toBeTrue();
|
||||
})();
|
||||
|
||||
function a() {
|
||||
expect(isStrictMode()).toBeTrue();
|
||||
}
|
||||
|
||||
a();
|
||||
|
||||
eval("expect(isStrictMode()).toBeTrue()");
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue