Skip to content

Commit

Permalink
0.4.10
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Jan 28, 2015
1 parent d87ce9b commit f7ad370
Show file tree
Hide file tree
Showing 16 changed files with 54 additions and 45 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1282,6 +1282,8 @@ var core = require('core-js/library');
require('core-js/shim');
```
## Changelog
**0.4.10** - *2015.01.28* - [`Object.getOwnPropertySymbols`](#ecmascript-6-symbols) polyfill returns wrapped key
**0.4.9** - *2015.01.27* - FF20-24 fix
**0.4.8** - *2015.01.25* - Some [collections](#ecmascript-6-collections) fixes
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.4.9",
"version": "0.4.10",
"description": "Standard Library",
"keywords": [
"ES6",
Expand Down
11 changes: 6 additions & 5 deletions client/core.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Core.js 0.4.9
* Core.js 0.4.10
* https:/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
Expand Down Expand Up @@ -781,15 +781,16 @@ $define(GLOBAL + FORCED, {global: global});
if(!isNative(Symbol)){
Symbol = function(description){
assert(!(this instanceof Symbol), SYMBOL + ' is not a ' + CONSTRUCTOR);
var tag = uid(description);
AllSymbols[tag] = true;
var tag = uid(description)
, sym = set(create(Symbol[PROTOTYPE]), TAG, tag);
AllSymbols[tag] = sym;
DESC && setter && defineProperty(ObjectProto, tag, {
configurable: true,
set: function(value){
hidden(this, tag, value);
}
});
return set(create(Symbol[PROTOTYPE]), TAG, tag);
return sym;
}
hidden(Symbol[PROTOTYPE], TO_STRING, function(){
return this[TAG];
Expand Down Expand Up @@ -845,7 +846,7 @@ $define(GLOBAL + FORCED, {global: global});
// 19.1.2.8 Object.getOwnPropertySymbols(O)
getOwnPropertySymbols: function(it){
var names = getNames(toObject(it)), result = [], key, i = 0;
while(names.length > i)has(AllSymbols, key = names[i++]) && result.push(key);
while(names.length > i)has(AllSymbols, key = names[i++]) && result.push(AllSymbols[key]);
return result;
}
});
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.map

Large diffs are not rendered by default.

11 changes: 6 additions & 5 deletions client/library.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Core.js 0.4.9
* Core.js 0.4.10
* https:/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
Expand Down Expand Up @@ -781,15 +781,16 @@ $define(GLOBAL + FORCED, {global: global});
if(!isNative(Symbol)){
Symbol = function(description){
assert(!(this instanceof Symbol), SYMBOL + ' is not a ' + CONSTRUCTOR);
var tag = uid(description);
AllSymbols[tag] = true;
var tag = uid(description)
, sym = set(create(Symbol[PROTOTYPE]), TAG, tag);
AllSymbols[tag] = sym;
DESC && setter && defineProperty(ObjectProto, tag, {
configurable: true,
set: function(value){
hidden(this, tag, value);
}
});
return set(create(Symbol[PROTOTYPE]), TAG, tag);
return sym;
}
hidden(Symbol[PROTOTYPE], TO_STRING, function(){
return this[TAG];
Expand Down Expand Up @@ -845,7 +846,7 @@ $define(GLOBAL + FORCED, {global: global});
// 19.1.2.8 Object.getOwnPropertySymbols(O)
getOwnPropertySymbols: function(it){
var names = getNames(toObject(it)), result = [], key, i = 0;
while(names.length > i)has(AllSymbols, key = names[i++]) && result.push(key);
while(names.length > i)has(AllSymbols, key = names[i++]) && result.push(AllSymbols[key]);
return result;
}
});
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.map

Large diffs are not rendered by default.

11 changes: 6 additions & 5 deletions client/shim.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Core.js 0.4.9
* Core.js 0.4.10
* https:/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
Expand Down Expand Up @@ -781,15 +781,16 @@ $define(GLOBAL + FORCED, {global: global});
if(!isNative(Symbol)){
Symbol = function(description){
assert(!(this instanceof Symbol), SYMBOL + ' is not a ' + CONSTRUCTOR);
var tag = uid(description);
AllSymbols[tag] = true;
var tag = uid(description)
, sym = set(create(Symbol[PROTOTYPE]), TAG, tag);
AllSymbols[tag] = sym;
DESC && setter && defineProperty(ObjectProto, tag, {
configurable: true,
set: function(value){
hidden(this, tag, value);
}
});
return set(create(Symbol[PROTOTYPE]), TAG, tag);
return sym;
}
hidden(Symbol[PROTOTYPE], TO_STRING, function(){
return this[TAG];
Expand Down Expand Up @@ -845,7 +846,7 @@ $define(GLOBAL + FORCED, {global: global});
// 19.1.2.8 Object.getOwnPropertySymbols(O)
getOwnPropertySymbols: function(it){
var names = getNames(toObject(it)), result = [], key, i = 0;
while(names.length > i)has(AllSymbols, key = names[i++]) && result.push(key);
while(names.length > i)has(AllSymbols, key = names[i++]) && result.push(AllSymbols[key]);
return result;
}
});
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.map

Large diffs are not rendered by default.

11 changes: 6 additions & 5 deletions index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Core.js 0.4.9
* Core.js 0.4.10
* https:/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
Expand Down Expand Up @@ -564,15 +564,16 @@ $define(GLOBAL + FORCED, {global: global});
if(!isNative(Symbol)){
Symbol = function(description){
assert(!(this instanceof Symbol), SYMBOL + ' is not a ' + CONSTRUCTOR);
var tag = uid(description);
AllSymbols[tag] = true;
var tag = uid(description)
, sym = set(create(Symbol[PROTOTYPE]), TAG, tag);
AllSymbols[tag] = sym;
DESC && setter && defineProperty(ObjectProto, tag, {
configurable: true,
set: function(value){
hidden(this, tag, value);
}
});
return set(create(Symbol[PROTOTYPE]), TAG, tag);
return sym;
}
hidden(Symbol[PROTOTYPE], TO_STRING, function(){
return this[TAG];
Expand Down Expand Up @@ -628,7 +629,7 @@ $define(GLOBAL + FORCED, {global: global});
// 19.1.2.8 Object.getOwnPropertySymbols(O)
getOwnPropertySymbols: function(it){
var names = getNames(toObject(it)), result = [], key, i = 0;
while(names.length > i)has(AllSymbols, key = names[i++]) && result.push(key);
while(names.length > i)has(AllSymbols, key = names[i++]) && result.push(AllSymbols[key]);
return result;
}
});
Expand Down
11 changes: 6 additions & 5 deletions library.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Core.js 0.4.9
* Core.js 0.4.10
* https:/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
Expand Down Expand Up @@ -564,15 +564,16 @@ $define(GLOBAL + FORCED, {global: global});
if(!isNative(Symbol)){
Symbol = function(description){
assert(!(this instanceof Symbol), SYMBOL + ' is not a ' + CONSTRUCTOR);
var tag = uid(description);
AllSymbols[tag] = true;
var tag = uid(description)
, sym = set(create(Symbol[PROTOTYPE]), TAG, tag);
AllSymbols[tag] = sym;
DESC && setter && defineProperty(ObjectProto, tag, {
configurable: true,
set: function(value){
hidden(this, tag, value);
}
});
return set(create(Symbol[PROTOTYPE]), TAG, tag);
return sym;
}
hidden(Symbol[PROTOTYPE], TO_STRING, function(){
return this[TAG];
Expand Down Expand Up @@ -628,7 +629,7 @@ $define(GLOBAL + FORCED, {global: global});
// 19.1.2.8 Object.getOwnPropertySymbols(O)
getOwnPropertySymbols: function(it){
var names = getNames(toObject(it)), result = [], key, i = 0;
while(names.length > i)has(AllSymbols, key = names[i++]) && result.push(key);
while(names.length > i)has(AllSymbols, key = names[i++]) && result.push(AllSymbols[key]);
return result;
}
});
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.4.9",
"version": "0.4.10",
"repository": {
"type": "git",
"url": "https:/zloirock/core-js.git"
Expand Down
11 changes: 6 additions & 5 deletions shim.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Core.js 0.4.9
* Core.js 0.4.10
* https:/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
Expand Down Expand Up @@ -564,15 +564,16 @@ $define(GLOBAL + FORCED, {global: global});
if(!isNative(Symbol)){
Symbol = function(description){
assert(!(this instanceof Symbol), SYMBOL + ' is not a ' + CONSTRUCTOR);
var tag = uid(description);
AllSymbols[tag] = true;
var tag = uid(description)
, sym = set(create(Symbol[PROTOTYPE]), TAG, tag);
AllSymbols[tag] = sym;
DESC && setter && defineProperty(ObjectProto, tag, {
configurable: true,
set: function(value){
hidden(this, tag, value);
}
});
return set(create(Symbol[PROTOTYPE]), TAG, tag);
return sym;
}
hidden(Symbol[PROTOTYPE], TO_STRING, function(){
return this[TAG];
Expand Down Expand Up @@ -628,7 +629,7 @@ $define(GLOBAL + FORCED, {global: global});
// 19.1.2.8 Object.getOwnPropertySymbols(O)
getOwnPropertySymbols: function(it){
var names = getNames(toObject(it)), result = [], key, i = 0;
while(names.length > i)has(AllSymbols, key = names[i++]) && result.push(key);
while(names.length > i)has(AllSymbols, key = names[i++]) && result.push(AllSymbols[key]);
return result;
}
});
Expand Down
9 changes: 5 additions & 4 deletions src/es6_symbol.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,16 @@
if(!isNative(Symbol)){
Symbol = function(description){
assert(!(this instanceof Symbol), SYMBOL + ' is not a ' + CONSTRUCTOR);
var tag = uid(description);
AllSymbols[tag] = true;
var tag = uid(description)
, sym = set(create(Symbol[PROTOTYPE]), TAG, tag);
AllSymbols[tag] = sym;
DESC && setter && defineProperty(ObjectProto, tag, {
configurable: true,
set: function(value){
hidden(this, tag, value);
}
});
return set(create(Symbol[PROTOTYPE]), TAG, tag);
return sym;
}
hidden(Symbol[PROTOTYPE], TO_STRING, function(){
return this[TAG];
Expand Down Expand Up @@ -68,7 +69,7 @@
// 19.1.2.8 Object.getOwnPropertySymbols(O)
getOwnPropertySymbols: function(it){
var names = getNames(toObject(it)), result = [], key, i = 0;
while(names.length > i)has(AllSymbols, key = names[i++]) && result.push(key);
while(names.length > i)has(AllSymbols, key = names[i++]) && result.push(AllSymbols[key]);
return result;
}
});
Expand Down

0 comments on commit f7ad370

Please sign in to comment.