Comparing version 6.1.2 to 6.1.4
@@ -225,6 +225,19 @@ /* @flow */ | ||
if (checkClashes) { | ||
if (checkClashes[expr.name]) { | ||
// we need to prefix this with an underscore for the cases where we have a key of | ||
// `__proto__`. there's a bug in old V8 where the following wouldn't work: | ||
// | ||
// > var obj = Object.create(null); | ||
// undefined | ||
// > obj.__proto__ | ||
// null | ||
// > obj.__proto__ = true; | ||
// true | ||
// > obj.__proto__ | ||
// null | ||
var key = "_" + expr.name; | ||
if (checkClashes[key]) { | ||
this.raise(expr.start, "Argument name clash in strict mode"); | ||
} else { | ||
checkClashes[expr.name] = true; | ||
checkClashes[key] = true; | ||
} | ||
@@ -231,0 +244,0 @@ } |
{ | ||
"name": "babylon", | ||
"version": "6.1.2", | ||
"version": "6.1.4", | ||
"description": "A JavaScript parser", | ||
@@ -13,2 +13,5 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>", | ||
}, | ||
"devDependencies": { | ||
"babel-helper-fixtures": "^6.1.4" | ||
}, | ||
"bin": { | ||
@@ -15,0 +18,0 @@ "babylon": "./bin/babylon.js" |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
198588
5051
1