Skip to content

Commit

Permalink
0.5.2
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Feb 10, 2015
1 parent 43b52d1 commit 2c1ba50
Show file tree
Hide file tree
Showing 16 changed files with 53 additions and 56 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1334,6 +1334,8 @@ Where `core.date` and `web.console` are module names, `library` is flag for buil
* `core-js/client/library` builds as `shim,core,library`
## Changelog
**0.5.2** - *2015.02.10* - Some fixes
**0.5.1** - *2015.02.09* - Some fixes
**0.5.0** - *2015.02.08*
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.5.1",
"version": "0.5.2",
"description": "Standard Library",
"keywords": [
"ES6",
Expand Down
15 changes: 7 additions & 8 deletions client/core.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Core.js 0.5.1
* Core.js 0.5.2
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
Expand Down Expand Up @@ -56,6 +56,7 @@ var OBJECT = 'Object'
, setTimeout = global.setTimeout
, setImmediate = global.setImmediate
, clearImmediate = global.clearImmediate
, parseInt = global.parseInt
, isFinite = global.isFinite
, process = global[PROCESS]
, nextTick = process && process.nextTick
Expand Down Expand Up @@ -653,7 +654,7 @@ if(exportGlobal || framework){
result = new Empty();
Empty[PROTOTYPE] = null;
// add "__proto__" for Object.getPrototypeOf shim
if(result[CONSTRUCTOR][PROTOTYPE] !== O)result[$PROTO] = O;
result[$PROTO] = O;
} else result = createDict();
return Properties === undefined ? result : defineProperties(result, Properties);
},
Expand Down Expand Up @@ -1188,16 +1189,14 @@ if(exportGlobal || framework){
// 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)
from: function(arrayLike/*, mapfn = undefined, thisArg = undefined*/){
var O = Object(assertDefined(arrayLike))
, result = new (generic(this, Array))
, mapfn = arguments[1]
, that = arguments[2]
, mapping = mapfn !== undefined
, f = mapping ? ctx(mapfn, that, 2) : undefined
, f = mapping ? ctx(mapfn, arguments[2], 2) : undefined
, index = 0
, length;
if(isIterable(O))for(var iter = getIterator(O), step; !(step = iter.next()).done; index++){
, length, result, iter, step;
if(isIterable(O))for(iter = getIterator(O), result = new (generic(this, Array)); !(step = iter.next()).done; index++){
result[index] = mapping ? f(step.value, index) : step.value;
} else for(length = toLength(O.length); length > index; index++){
} else for(result = new (generic(this, Array))(length = toLength(O.length)); length > index; index++){
result[index] = mapping ? f(O[index], index) : O[index];
}
result.length = index;
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.

15 changes: 7 additions & 8 deletions client/library.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Core.js 0.5.1
* Core.js 0.5.2
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
Expand Down Expand Up @@ -56,6 +56,7 @@ var OBJECT = 'Object'
, setTimeout = global.setTimeout
, setImmediate = global.setImmediate
, clearImmediate = global.clearImmediate
, parseInt = global.parseInt
, isFinite = global.isFinite
, process = global[PROCESS]
, nextTick = process && process.nextTick
Expand Down Expand Up @@ -653,7 +654,7 @@ if(exportGlobal || framework){
result = new Empty();
Empty[PROTOTYPE] = null;
// add "__proto__" for Object.getPrototypeOf shim
if(result[CONSTRUCTOR][PROTOTYPE] !== O)result[$PROTO] = O;
result[$PROTO] = O;
} else result = createDict();
return Properties === undefined ? result : defineProperties(result, Properties);
},
Expand Down Expand Up @@ -1168,16 +1169,14 @@ if(exportGlobal || framework){
// 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)
from: function(arrayLike/*, mapfn = undefined, thisArg = undefined*/){
var O = Object(assertDefined(arrayLike))
, result = new (generic(this, Array))
, mapfn = arguments[1]
, that = arguments[2]
, mapping = mapfn !== undefined
, f = mapping ? ctx(mapfn, that, 2) : undefined
, f = mapping ? ctx(mapfn, arguments[2], 2) : undefined
, index = 0
, length;
if(isIterable(O))for(var iter = getIterator(O), step; !(step = iter.next()).done; index++){
, length, result, iter, step;
if(isIterable(O))for(iter = getIterator(O), result = new (generic(this, Array)); !(step = iter.next()).done; index++){
result[index] = mapping ? f(step.value, index) : step.value;
} else for(length = toLength(O.length); length > index; index++){
} else for(result = new (generic(this, Array))(length = toLength(O.length)); length > index; index++){
result[index] = mapping ? f(O[index], index) : O[index];
}
result.length = index;
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.

15 changes: 7 additions & 8 deletions client/shim.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Core.js 0.5.1
* Core.js 0.5.2
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
Expand Down Expand Up @@ -56,6 +56,7 @@ var OBJECT = 'Object'
, setTimeout = global.setTimeout
, setImmediate = global.setImmediate
, clearImmediate = global.clearImmediate
, parseInt = global.parseInt
, isFinite = global.isFinite
, process = global[PROCESS]
, nextTick = process && process.nextTick
Expand Down Expand Up @@ -653,7 +654,7 @@ if(exportGlobal || framework){
result = new Empty();
Empty[PROTOTYPE] = null;
// add "__proto__" for Object.getPrototypeOf shim
if(result[CONSTRUCTOR][PROTOTYPE] !== O)result[$PROTO] = O;
result[$PROTO] = O;
} else result = createDict();
return Properties === undefined ? result : defineProperties(result, Properties);
},
Expand Down Expand Up @@ -1188,16 +1189,14 @@ if(exportGlobal || framework){
// 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)
from: function(arrayLike/*, mapfn = undefined, thisArg = undefined*/){
var O = Object(assertDefined(arrayLike))
, result = new (generic(this, Array))
, mapfn = arguments[1]
, that = arguments[2]
, mapping = mapfn !== undefined
, f = mapping ? ctx(mapfn, that, 2) : undefined
, f = mapping ? ctx(mapfn, arguments[2], 2) : undefined
, index = 0
, length;
if(isIterable(O))for(var iter = getIterator(O), step; !(step = iter.next()).done; index++){
, length, result, iter, step;
if(isIterable(O))for(iter = getIterator(O), result = new (generic(this, Array)); !(step = iter.next()).done; index++){
result[index] = mapping ? f(step.value, index) : step.value;
} else for(length = toLength(O.length); length > index; index++){
} else for(result = new (generic(this, Array))(length = toLength(O.length)); length > index; index++){
result[index] = mapping ? f(O[index], index) : O[index];
}
result.length = index;
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.

13 changes: 6 additions & 7 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Core.js 0.5.1
* Core.js 0.5.2
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
Expand Down Expand Up @@ -56,6 +56,7 @@ var OBJECT = 'Object'
, setTimeout = global.setTimeout
, setImmediate = global.setImmediate
, clearImmediate = global.clearImmediate
, parseInt = global.parseInt
, isFinite = global.isFinite
, process = global[PROCESS]
, nextTick = process && process.nextTick
Expand Down Expand Up @@ -971,16 +972,14 @@ if(exportGlobal || framework){
// 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)
from: function(arrayLike/*, mapfn = undefined, thisArg = undefined*/){
var O = Object(assertDefined(arrayLike))
, result = new (generic(this, Array))
, mapfn = arguments[1]
, that = arguments[2]
, mapping = mapfn !== undefined
, f = mapping ? ctx(mapfn, that, 2) : undefined
, f = mapping ? ctx(mapfn, arguments[2], 2) : undefined
, index = 0
, length;
if(isIterable(O))for(var iter = getIterator(O), step; !(step = iter.next()).done; index++){
, length, result, iter, step;
if(isIterable(O))for(iter = getIterator(O), result = new (generic(this, Array)); !(step = iter.next()).done; index++){
result[index] = mapping ? f(step.value, index) : step.value;
} else for(length = toLength(O.length); length > index; index++){
} else for(result = new (generic(this, Array))(length = toLength(O.length)); length > index; index++){
result[index] = mapping ? f(O[index], index) : O[index];
}
result.length = index;
Expand Down
13 changes: 6 additions & 7 deletions library.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Core.js 0.5.1
* Core.js 0.5.2
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
Expand Down Expand Up @@ -56,6 +56,7 @@ var OBJECT = 'Object'
, setTimeout = global.setTimeout
, setImmediate = global.setImmediate
, clearImmediate = global.clearImmediate
, parseInt = global.parseInt
, isFinite = global.isFinite
, process = global[PROCESS]
, nextTick = process && process.nextTick
Expand Down Expand Up @@ -951,16 +952,14 @@ if(exportGlobal || framework){
// 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)
from: function(arrayLike/*, mapfn = undefined, thisArg = undefined*/){
var O = Object(assertDefined(arrayLike))
, result = new (generic(this, Array))
, mapfn = arguments[1]
, that = arguments[2]
, mapping = mapfn !== undefined
, f = mapping ? ctx(mapfn, that, 2) : undefined
, f = mapping ? ctx(mapfn, arguments[2], 2) : undefined
, index = 0
, length;
if(isIterable(O))for(var iter = getIterator(O), step; !(step = iter.next()).done; index++){
, length, result, iter, step;
if(isIterable(O))for(iter = getIterator(O), result = new (generic(this, Array)); !(step = iter.next()).done; index++){
result[index] = mapping ? f(step.value, index) : step.value;
} else for(length = toLength(O.length); length > index; index++){
} else for(result = new (generic(this, Array))(length = toLength(O.length)); length > index; index++){
result[index] = mapping ? f(O[index], index) : O[index];
}
result.length = index;
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.5.1",
"version": "0.5.2",
"repository": {
"type": "git",
"url": "https://github.com/zloirock/core-js.git"
Expand Down
13 changes: 6 additions & 7 deletions shim.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Core.js 0.5.1
* Core.js 0.5.2
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
Expand Down Expand Up @@ -56,6 +56,7 @@ var OBJECT = 'Object'
, setTimeout = global.setTimeout
, setImmediate = global.setImmediate
, clearImmediate = global.clearImmediate
, parseInt = global.parseInt
, isFinite = global.isFinite
, process = global[PROCESS]
, nextTick = process && process.nextTick
Expand Down Expand Up @@ -971,16 +972,14 @@ if(exportGlobal || framework){
// 22.1.2.1 Array.from(arrayLike, mapfn = undefined, thisArg = undefined)
from: function(arrayLike/*, mapfn = undefined, thisArg = undefined*/){
var O = Object(assertDefined(arrayLike))
, result = new (generic(this, Array))
, mapfn = arguments[1]
, that = arguments[2]
, mapping = mapfn !== undefined
, f = mapping ? ctx(mapfn, that, 2) : undefined
, f = mapping ? ctx(mapfn, arguments[2], 2) : undefined
, index = 0
, length;
if(isIterable(O))for(var iter = getIterator(O), step; !(step = iter.next()).done; index++){
, length, result, iter, step;
if(isIterable(O))for(iter = getIterator(O), result = new (generic(this, Array)); !(step = iter.next()).done; index++){
result[index] = mapping ? f(step.value, index) : step.value;
} else for(length = toLength(O.length); length > index; index++){
} else for(result = new (generic(this, Array))(length = toLength(O.length)); length > index; index++){
result[index] = mapping ? f(O[index], index) : O[index];
}
result.length = index;
Expand Down
1 change: 1 addition & 0 deletions src/common.js
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ var OBJECT = 'Object'
, setTimeout = global.setTimeout
, setImmediate = global.setImmediate
, clearImmediate = global.clearImmediate
, parseInt = global.parseInt
, isFinite = global.isFinite
, process = global[PROCESS]
, nextTick = process && process.nextTick
Expand Down

0 comments on commit 2c1ba50

Please sign in to comment.