Skip to content

Commit

Permalink
Add window.status
Browse files Browse the repository at this point in the history
This was previously missing because it exposed a bug in the vm module on Node.js v6 which appeared in a few XHR tests. The bug has been fixed in later versions.
  • Loading branch information
Zirro authored and domenic committed Aug 13, 2018
1 parent 34e460b commit 9477401
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
4 changes: 1 addition & 3 deletions lib/jsdom/browser/Window.js
Expand Up @@ -582,9 +582,7 @@ function Window(options) {

define(this, {
name: "",
// Node v6 has issues (presumably in the vm module)
// which this property exposes through an XHR test
// status: "",
status: "",
devicePixelRatio: 1,
innerWidth: 1024,
innerHeight: 768,
Expand Down
Expand Up @@ -115,15 +115,15 @@
// "applicationCache", // not yet implemented

// WindowSessionStorage
// "sessionStorage", // not yet implemented
"sessionStorage",

// WindowLocalStorage
// "localStorage", // not yet implemented
"localStorage",
];

var writableAttributes = [
"name",
// "status", // looks like there is an issue with Node v6 and XHR, see Window.js
"status",
// "opener", // not yet implemented
"onabort",
"onafterprint",
Expand Down

0 comments on commit 9477401

Please sign in to comment.