Skip to content

Commit

Permalink
lib: save a reference to intrinsic constructs
Browse files Browse the repository at this point in the history
  • Loading branch information
refack committed May 11, 2017
1 parent 631cb42 commit 3963e0f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions lib/internal/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -278,3 +278,14 @@ promisify.custom = kCustomPromisifiedSymbol;

exports.promisify = promisify;
exports.customPromisifyArgs = kCustomPromisifyArgsSymbol;

exports.intrinsic = {
FunctionApply: Function.prototype.apply,
FunctionCall: Function.prototype.call,
ObjectAssign: Object.assign,
ObjectSetPrototypeOf: Object.setPrototypeOf,
Object: Object,
Array: Array,
ObjectPrototype: Object.assign({}, Object.prototype),
ArrayPrototype: Object.assign({}, Array.prototype)
};

0 comments on commit 3963e0f

Please sign in to comment.