New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

es-symbol

Package Overview
Dependencies
Maintainers
1
Versions
5
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es-symbol - npm Package Compare versions

Comparing version 1.0.0 to 1.0.1

2

dist/symbol.js

@@ -40,3 +40,3 @@ "use strict";

set: function (value) {
defProp(this, tag, defValue(value));
defProp(this, tag, defValue(value, { c: true, w: true }));
},

@@ -43,0 +43,0 @@ configurable: true,

{
"name": "es-symbol",
"version": "1.0.0",
"version": "1.0.1",
"description": "A spec-compliant as much as it could be, small, and tested ES6 Symbol implementation.",

@@ -5,0 +5,0 @@ "main": "dist/symbol.js",

@@ -166,2 +166,18 @@ var assert = require('assert')

}
},
'you can rewrite symbols in instances'() {
var priv = Symbol()
function X() {
this[priv] = true
}
var x = new X()
var passed = x[priv] === true
x[priv] = false
return passed &= x[priv] === false
}

@@ -189,1 +205,2 @@ }

t('broken use of keyFor')
t('you can rewrite symbols in instances')
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