diff --git a/acorn.js b/acorn.js
index 76d10903e9..e7d8c44d3d 100644
--- a/acorn.js
+++ b/acorn.js
@@ -101,7 +101,7 @@
function setOptions(opts) {
options = opts || {};
- for (var opt in defaultOptions) if (!options.hasOwnProperty(opt))
+ for (var opt in defaultOptions) if (!Object.prototype.hasOwnProperty.call(options, opt))
options[opt] = defaultOptions[opt];
sourceFile = options.sourceFile || null;
}
diff --git a/index.html b/index.html
index b92bc1327f..045d0fb29b 100644
--- a/index.html
+++ b/index.html
@@ -65,7 +65,7 @@ file in every node's loc object.
The getLineInfo function is mostly useful when the