Skip to content

Commit

Permalink
[Fix] sync Object.keys excluded list from object-keys
Browse files Browse the repository at this point in the history
  • Loading branch information
ljharb committed Aug 31, 2018
1 parent a265a13 commit 147c0d8
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
22 changes: 17 additions & 5 deletions es5-shim.js
Original file line number Diff line number Diff line change
Expand Up @@ -1007,16 +1007,28 @@
return ctor && ctor.prototype === o;
};
var excludedKeys = {
$window: true,
$applicationCache: true,
$console: true,
$parent: true,
$self: true,
$external: true,
$frame: true,
$frames: true,
$frameElement: true,
$frames: true,
$innerHeight: true,
$innerWidth: true,
$outerHeight: true,
$outerWidth: true,
$pageXOffset: true,
$pageYOffset: true,
$parent: true,
$scrollLeft: true,
$scrollTop: true,
$scrollX: true,
$scrollY: true,
$self: true,
$webkitIndexedDB: true,
$webkitStorageInfo: true,
$external: true,
$window: true,

$width: true,
$height: true,
$top: true,
Expand Down
2 changes: 1 addition & 1 deletion tests/spec/s-object.js
Original file line number Diff line number Diff line change
Expand Up @@ -140,7 +140,7 @@ describe('Object', function () {

ifWindowIt('can serialize all objects on the `window`', function () {
var windowItemKeys, exception;
var excludedKeys = ['window', 'console', 'parent', 'self', 'frame', 'frames', 'frameElement', 'external', 'height', 'width', 'top', 'localStorage'];
var excludedKeys = ['window', 'console', 'parent', 'self', 'frame', 'frames', 'frameElement', 'external', 'height', 'width', 'top', 'localStorage', 'applicationCache'];
if (supportsDescriptors) {
Object.defineProperty(window, 'thrower', {
configurable: true,
Expand Down

0 comments on commit 147c0d8

Please sign in to comment.