Skip to content

Commit

Permalink
Adds workaround for rollup treeshaking issue
Browse files Browse the repository at this point in the history
rollup treeshaking is removing the Object.getOwnPropertyNames
FAILS_ON_PRIMITIVES feature test.

This is related to these rollup issue
rollup/rollup#1771
rollup/rollup#2790

Related issue and fix
zloirock#513
zloirock@f813c4e
  • Loading branch information
nicketson committed Apr 25, 2019
1 parent 2eb6e7e commit 0edfe23
Showing 1 changed file with 1 addition and 1 deletion.
@@ -1,5 +1,5 @@
var nativeGetOwnPropertyNames = require('../internals/object-get-own-property-names-external').f;
var FAILS_ON_PRIMITIVES = require('../internals/fails')(function () { Object.getOwnPropertyNames(1); });
var FAILS_ON_PRIMITIVES = require('../internals/fails')(function () { return !Object.getOwnPropertyNames(1); });

// `Object.getOwnPropertyNames` method
// https://tc39.github.io/ecma262/#sec-object.getownpropertynames
Expand Down

0 comments on commit 0edfe23

Please sign in to comment.