We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a116534 commit e512174Copy full SHA for e512174
packages/ses/src/tame-function-constructors.js
@@ -5,6 +5,7 @@ import {
5
defineProperties,
6
getPrototypeOf,
7
setPrototypeOf,
8
+ freeze,
9
} from './commons.js';
10
11
// This module replaces the original `Function` constructor, and the original
@@ -49,7 +50,7 @@ export default function tameFunctionConstructors() {
49
50
FERAL_FUNCTION.prototype.constructor('return 1');
51
} catch (ignore) {
52
// Throws, no need to patch.
- return harden({});
53
+ return freeze({});
54
}
55
56
const newIntrinsics = {};
0 commit comments