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

es6-shim

Package Overview
Dependencies
Maintainers
1
Versions
90
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

es6-shim - npm Package Compare versions

Comparing version 0.5.0 to 0.5.1

4

CHANGELOG.md

@@ -0,1 +1,5 @@

# es6-shim 0.5.1 (June 14, 2012)
* Made Map and Set follow Spidermonkey implementation instead of V8.
`var m = Map(); m.set('key', void 0); m.has('key');` now gives true.
# es6-shim 0.5.0 (June 13, 2012)

@@ -2,0 +6,0 @@ * Added Number.MAX_INTEGER, Number.EPSILON, Number.parseInt,

5

es6-shim.js

@@ -283,7 +283,2 @@ ({define: (typeof define === 'function')

if (index < 0) index = keys.length;
if (value === void 0) {
keys.splice(index, 1);
values.splice(index, 1);
return;
}
keys[index] = key;

@@ -290,0 +285,0 @@ values[index] = value;

@@ -5,3 +5,3 @@ {

"description": "ECMAScript 6 (Harmony) compatibility shims for legacy JavaScript engines",
"version": "0.5.0",
"version": "0.5.1",
"homepage": "https://github.com/paulmillr/es6-shim/",

@@ -14,3 +14,3 @@ "repository": {

"scripts": {
"test": "make test"
"test": "./node_modules/mocha/bin/mocha --reporter spec --require 'test/test_helpers.js'"
},

@@ -22,5 +22,5 @@ "engines": {

"devDependencies": {
"mocha": "0.7.1",
"expect.js": "0.1.1"
"mocha": "1.1.0",
"expect.js": "0.1.2"
}
}

@@ -37,5 +37,2 @@ # ES6 Shim

es6-collections Map and Set are also implemented incorrectly and don't pass
all V8 collection tests.
## IE8 support

@@ -83,2 +80,7 @@ There are some shims that do not work in IE8, because it is simply not

Other stuff:
* [ECMAScript 6 drafts](http://wiki.ecmascript.org/doku.php?id=harmony:specification_drafts)
* [Harmony proposals](http://wiki.ecmascript.org/doku.php?id=harmony:harmony)
## License

@@ -89,3 +91,3 @@ The project was initially based on [es6-shim by Axel Rauschmayer](https://github.com/rauschma/es6-shim).

Copyright (c) Paul Miller (http://paulmillr.com)
Copyright (c) 2012 Paul Miller (http://paulmillr.com)

@@ -92,0 +94,0 @@ Permission is hereby granted, free of charge, to any person obtaining a copy of

@@ -62,3 +62,3 @@ // Big thanks to V8 folks for test ideas.

testMapping(key, void 0);
expect(map.has(key)).to.be(false);
expect(map.has(key)).to.be(true);
expect(map.has(new Object)).to.be(false);

@@ -65,0 +65,0 @@ });

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