[Pkg-javascript-commits] [node-acorn-jsx] 325/484: Fix no-options case for acorn.
Bastien Roucariès
rouca at moszumanska.debian.org
Sat Aug 19 14:20:50 UTC 2017
This is an automated email from the git hooks/post-receive script.
rouca pushed a commit to branch master
in repository node-acorn-jsx.
commit c5145cedb2c46fa17592305e4b5b14de9774a887
Author: Ingvar Stepanyan <me at rreverser.com>
Date: Sun Oct 26 23:14:26 2014 +0200
Fix no-options case for acorn.
---
acorn.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/acorn.js b/acorn.js
index adf4675..ea4121e 100644
--- a/acorn.js
+++ b/acorn.js
@@ -137,7 +137,7 @@
function setOptions(opts) {
options = {};
for (var opt in defaultOptions)
- options[opt] = has(opts, opt) ? opts[opt] : defaultOptions[opt];
+ options[opt] = opts && has(opts, opt) ? opts[opt] : defaultOptions[opt];
sourceFile = options.sourceFile || null;
if (isArray(options.onToken)) {
var tokens = options.onToken;
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/node-acorn-jsx.git
More information about the Pkg-javascript-commits
mailing list