Skip to content

Commit

Permalink
0.8.3
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Apr 13, 2015
1 parent 815d892 commit 658ca70
Show file tree
Hide file tree
Showing 16 changed files with 32 additions and 29 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1297,6 +1297,9 @@ delay(1e3).then(() => log('after 1 sec'));
```
## Changelog
##### 0.8.3 - 2015.04.14
* fixed `Array` statics with single entry points
##### 0.8.2 - 2015.04.13
* [`Math.fround`](#ecmascript-6-number--math) now also works in IE9-
* added [`Set#toJSON`](#ecmascript-7)
Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "core.js",
"main": "client/core.js",
"version": "0.8.2",
"version": "0.8.3",
"description": "Standard Library",
"keywords": [
"ES6",
Expand Down
8 changes: 4 additions & 4 deletions client/core.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Core.js 0.8.2
* Core.js 0.8.3
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
Expand Down Expand Up @@ -1962,7 +1962,7 @@ var Infinity = 1 / 0
, MAX32 = pow(2, 127) * (2 - EPSILON32)
, MIN32 = pow(2, -126);
function roundTiesToEven(n){
return (n + 1 / EPSILON) - 1 / EPSILON;
return n + 1 / EPSILON - 1 / EPSILON;
}

// 20.2.2.28 Math.sign(x)
Expand Down Expand Up @@ -2951,11 +2951,11 @@ $def($def.P, 'String', {
// JavaScript 1.6 / Strawman array statics shim
var $ = require('./$')
, $def = require('./$.def')
, core = $.core
, $Array = $.core.Array || Array
, statics = {};
function setStatics(keys, length){
$.each.call(keys.split(','), function(key){
if(length == undefined && key in core.Array)statics[key] = core.Array[key];
if(length == undefined && key in $Array)statics[key] = $Array[key];
else if(key in [])statics[key] = require('./$.ctx')(Function.call, [][key], length);
});
}
Expand Down
4 changes: 2 additions & 2 deletions client/core.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/core.min.js.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions client/library.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Core.js 0.8.2
* Core.js 0.8.3
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
Expand Down Expand Up @@ -1964,7 +1964,7 @@ var Infinity = 1 / 0
, MAX32 = pow(2, 127) * (2 - EPSILON32)
, MIN32 = pow(2, -126);
function roundTiesToEven(n){
return (n + 1 / EPSILON) - 1 / EPSILON;
return n + 1 / EPSILON - 1 / EPSILON;
}

// 20.2.2.28 Math.sign(x)
Expand Down Expand Up @@ -2877,11 +2877,11 @@ $def($def.P, 'String', {
// JavaScript 1.6 / Strawman array statics shim
var $ = require('./$')
, $def = require('./$.def')
, core = $.core
, $Array = $.core.Array || Array
, statics = {};
function setStatics(keys, length){
$.each.call(keys.split(','), function(key){
if(length == undefined && key in core.Array)statics[key] = core.Array[key];
if(length == undefined && key in $Array)statics[key] = $Array[key];
else if(key in [])statics[key] = require('./$.ctx')(Function.call, [][key], length);
});
}
Expand Down
4 changes: 2 additions & 2 deletions client/library.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/library.min.js.map

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions client/shim.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Core.js 0.8.2
* Core.js 0.8.3
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
Expand Down Expand Up @@ -1463,7 +1463,7 @@ var Infinity = 1 / 0
, MAX32 = pow(2, 127) * (2 - EPSILON32)
, MIN32 = pow(2, -126);
function roundTiesToEven(n){
return (n + 1 / EPSILON) - 1 / EPSILON;
return n + 1 / EPSILON - 1 / EPSILON;
}

// 20.2.2.28 Math.sign(x)
Expand Down Expand Up @@ -2452,11 +2452,11 @@ $def($def.P, 'String', {
// JavaScript 1.6 / Strawman array statics shim
var $ = require('./$')
, $def = require('./$.def')
, core = $.core
, $Array = $.core.Array || Array
, statics = {};
function setStatics(keys, length){
$.each.call(keys.split(','), function(key){
if(length == undefined && key in core.Array)statics[key] = core.Array[key];
if(length == undefined && key in $Array)statics[key] = $Array[key];
else if(key in [])statics[key] = require('./$.ctx')(Function.call, [][key], length);
});
}
Expand Down
4 changes: 2 additions & 2 deletions client/shim.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion client/shim.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion library/modules/es6.math.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var Infinity = 1 / 0
, MAX32 = pow(2, 127) * (2 - EPSILON32)
, MIN32 = pow(2, -126);
function roundTiesToEven(n){
return (n + 1 / EPSILON) - 1 / EPSILON;
return n + 1 / EPSILON - 1 / EPSILON;
}

// 20.2.2.28 Math.sign(x)
Expand Down
4 changes: 2 additions & 2 deletions library/modules/js.array.statics.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// JavaScript 1.6 / Strawman array statics shim
var $ = require('./$')
, $def = require('./$.def')
, core = $.core
, $Array = $.core.Array || Array
, statics = {};
function setStatics(keys, length){
$.each.call(keys.split(','), function(key){
if(length == undefined && key in core.Array)statics[key] = core.Array[key];
if(length == undefined && key in $Array)statics[key] = $Array[key];
else if(key in [])statics[key] = require('./$.ctx')(Function.call, [][key], length);
});
}
Expand Down
2 changes: 1 addition & 1 deletion modules/es6.math.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ var Infinity = 1 / 0
, MAX32 = pow(2, 127) * (2 - EPSILON32)
, MIN32 = pow(2, -126);
function roundTiesToEven(n){
return (n + 1 / EPSILON) - 1 / EPSILON;
return n + 1 / EPSILON - 1 / EPSILON;
}

// 20.2.2.28 Math.sign(x)
Expand Down
4 changes: 2 additions & 2 deletions modules/js.array.statics.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
// JavaScript 1.6 / Strawman array statics shim
var $ = require('./$')
, $def = require('./$.def')
, core = $.core
, $Array = $.core.Array || Array
, statics = {};
function setStatics(keys, length){
$.each.call(keys.split(','), function(key){
if(length == undefined && key in core.Array)statics[key] = core.Array[key];
if(length == undefined && key in $Array)statics[key] = $Array[key];
else if(key in [])statics[key] = require('./$.ctx')(Function.call, [][key], length);
});
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "core-js",
"description": "Standard library",
"version": "0.8.2",
"version": "0.8.3",
"repository": {
"type": "git",
"url": "https://github.com/zloirock/core-js.git"
Expand Down

0 comments on commit 658ca70

Please sign in to comment.