Skip to content

Commit 3963e0f

Browse files
committed
lib: save a reference to intrinsic constructs
1 parent 631cb42 commit 3963e0f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

lib/internal/util.js

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -278,3 +278,14 @@ promisify.custom = kCustomPromisifiedSymbol;
278278

279279
exports.promisify = promisify;
280280
exports.customPromisifyArgs = kCustomPromisifyArgsSymbol;
281+
282+
exports.intrinsic = {
283+
FunctionApply: Function.prototype.apply,
284+
FunctionCall: Function.prototype.call,
285+
ObjectAssign: Object.assign,
286+
ObjectSetPrototypeOf: Object.setPrototypeOf,
287+
Object: Object,
288+
Array: Array,
289+
ObjectPrototype: Object.assign({}, Object.prototype),
290+
ArrayPrototype: Object.assign({}, Array.prototype)
291+
};

0 commit comments

Comments
 (0)