ladybird/Libraries/LibJS/Tests/functions/function-strict-mode.js
Andreas Kling fdb85a330e LibJS: Stop tracking whether execution context is strict mode or not
This was only used for basic testing, and forced us to plumb this flag
flag in a bunch of places.
2025-10-29 21:20:10 +01:00

9 lines
211 B
JavaScript

test("strict mode does not apply global object to |this|", () => {
"use strict";
let functionThis;
(function () {
functionThis = this;
})();
expect(functionThis).toBeUndefined();
});