We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents a3024f1 + f3e8826 commit 83e2debCopy full SHA for 83e2deb
index.js
@@ -155,7 +155,7 @@ function localizeDeclNode(node, context) {
155
}
156
break;
157
case "url":
158
- if(context.options.rewriteUrl) {
+ if(context.options && context.options.rewriteUrl) {
159
newNode = Object.create(node);
160
newNode.url = context.options.rewriteUrl(context.global, node.url);
161
return newNode;
test.js
@@ -393,7 +393,7 @@ test(name, function (t) {
393
t.plan(tests.length);
394
395
tests.forEach(function (testCase) {
396
- var options = testCase.options || {};
+ var options = testCase.options;
397
if(testCase.error) {
398
t.throws(function() {
399
process(testCase.input, options);
0 commit comments