SES - Function constructor this-value
See original GitHub issueis it possible to safely preserve this strict-mode behavior in SES? its a common pre-globalThis pattern as long as the globalThis is the compartment globalThis, it seems fine 🤔
new Function('return this')() === globalThis
Issue Analytics
- State:
- Created 3 years ago
- Comments:6 (6 by maintainers)
Top Results From Across the Web
Class: AWS.SES — AWS SDK for JavaScript
Constructs a service interface object. Each API operation is exposed as a function on service. Service Description.
Read more >Function() constructor - JavaScript - MDN Web Docs
The Function() constructor creates a new Function object. Calling the constructor directly can create functions dynamically, ...
Read more >SES transport - Nodemailer
SES object as the value for SES property in Nodemailer transport options. ... This value is derived from the response of SES API,...
Read more >ses - UNPKG
The CDN for ses. ... 184, // *** Constructor Properties of the Global Object ... 4065, // TODO: since we create an anonymous...
Read more >Constructor, operator "new" - The Modern JavaScript Tutorial
That can be done using constructor functions and the "new" operator. Constructor function. Constructor functions technically are regular ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

thanks 🚀
Yes. Caller insensitivity. Like any other function, the meaning of both
Functionand indirectevalare not sensitive to the strictness of their caller. That would be dynamic scoping, which is one horror that I have totally succeeded at keeping out of JS!For both
Functionand indirecteval, they evaluate their code sloppy unless that code begins with a"use strict";directive. However, SES banishes sloppy mode completely, but still with no caller sensitivity. The SESFucntionand indirectevalevaluate their code onlystrict, as if always preceded by a"use strict";directive.