Socket
Socket
Sign inDemoInstall

babylon

Package Overview
Dependencies
Maintainers
1
Versions
132
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babylon - npm Package Compare versions

Comparing version 6.1.2 to 6.1.4

17

lib/parser/lval.js

@@ -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 @@ }

5

package.json
{
"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"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc