abandonware/wireless-tools

interface word is future-reserved

Closed this issue · 0 comments

Hi, I am using the wireless-tools package in my node.js app. Also I am trying to create a standalone app with nexe. But it I am getting such errors:

Acorn error: The keyword 'interface' is reserved (57:17)
File: /projects/blotcycler/node_modules/wireless-tools/hostapd.js

55   *
56   */
57  function disable(interface, callback) {
58    var file = interface + '-hostapd.conf';
59
60    return this.exec('kill `pgrep -f "^hostapd -B ' + file + '"` || true',
61      callback);

The interface word is future-reserved (link), so it is better replace it into another in whole package.