Skip to content

Commit 8ac615f

Browse files
committed
Don't use syntax that doesn't work in Node v4 (yet)
1 parent ef0d836 commit 8ac615f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/jsdom/browser/htmltodom.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,9 @@ class HtmlToDom {
183183
const entityMatcher = /<!ENTITY ([^ ]+) "([^"]+)">/g;
184184
let result;
185185
while ((result = entityMatcher.exec(dt))) {
186-
const [, name, value] = result;
186+
// TODO Node v6 const [, name, value] = result;
187+
const name = result[1];
188+
const value = result[2];
187189
if (!(name in parser.ENTITIES)) {
188190
parser.ENTITIES[name] = value;
189191
}

0 commit comments

Comments
 (0)