| Index: test/_common.js |
| =================================================================== |
| --- a/test/_common.js |
| +++ b/test/_common.js |
| @@ -38,18 +38,18 @@ |
| }; |
| let XPCOMUtils = { |
| generateQI() {} |
| }; |
| let FileUtils = {}; |
| let resources = {Services, XPCOMUtils, FileUtils}; |
| let globals = { |
| - atob: data => new Buffer(data, "base64").toString("binary"), |
| - btoa: data => new Buffer(data, "binary").toString("base64"), |
| + atob: data => Buffer.from(data, "base64").toString("binary"), |
| + btoa: data => Buffer.from(data, "binary").toString("base64"), |
| Ci: { |
| }, |
| Cu: { |
| import(resource) |
| { |
| let match = /^resource:\/\/gre\/modules\/(.+)\.jsm$/.exec(resource); |
| let resourceName = match && match[1]; |
| if (resourceName && resources.hasOwnProperty(resourceName)) |