Skip to content

Commit

Permalink
[Fix] do not mutate the native function when present
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed May 20, 2020
1 parent 124d3bb commit fffb674
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
'use strict';

var define = require('define-properties');
var callBind = require('es-abstract/helpers/callBind');

var implementation = require('./implementation');
var getPolyfill = require('./polyfill');
var shim = require('./shim');

var polyfill = getPolyfill();
var polyfill = callBind(getPolyfill(), Object);

define(polyfill, {
getPolyfill: getPolyfill,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
"pretest": "npm run --silent lint",
"test": "npm run --silent tests-only",
"posttest": "npx aud --production",
"tests-only": "es-shim-api && npm run --silent test:shimmed && npm run --silent test:module",
"tests-only": "es-shim-api --bound && npm run --silent test:shimmed && npm run --silent test:module",
"test:shimmed": "node test/shimmed",
"test:module": "node test/index",
"coverage": "covert test/*.js",
Expand Down

0 comments on commit fffb674

Please sign in to comment.