Skip to content

Commit

Permalink
0.9.17
Browse files Browse the repository at this point in the history
  • Loading branch information
zloirock committed Jun 13, 2015
1 parent f7ea577 commit 01b50a7
Show file tree
Hide file tree
Showing 12 changed files with 66 additions and 56 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1313,6 +1313,10 @@ delay(1e3).then(() => log('after 1 sec'));
```
## Changelog
##### 0.9.17 - 2015.06.14
* updated [`RegExp.escape`](#ecmascript-7) to the [latest proposal](https://github.com/benjamingr/RexExp.escape)
* fixed conflict with webpack dev server + IE buggy behavior
##### 0.9.16 - 2015.06.11
* more correct order resolving thenable in [`Promise`](#ecmascript-6-promises) polyfill
* uses polyfill instead of [buggy V8 `Promise`](https://github.com/zloirock/core-js/issues/78)
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.9.16",
"version": "0.9.17",
"description": "Standard Library",
"keywords": [
"ES6",
Expand Down
30 changes: 16 additions & 14 deletions client/core.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* core-js 0.9.16
* core-js 0.9.17
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
Expand Down Expand Up @@ -602,7 +602,7 @@ var __e = null, __g = null;

var $ = __webpack_require__(2)
, SHARED = '__core-js_shared__'
, store = $.g[SHARED] || $.hide($.g, SHARED, {})[SHARED];
, store = $.g[SHARED] || ($.g[SHARED] = {});
module.exports = function(key){
return store[key] || (store[key] = {});
};
Expand Down Expand Up @@ -2154,6 +2154,7 @@ var __e = null, __g = null;
, PROMISE = 'Promise'
, global = $.g
, process = global.process
, isNode = cof(process) == 'process'
, asap = process && process.nextTick || __webpack_require__(62).set
, P = global[PROMISE]
, isFunction = $.isFunction
Expand Down Expand Up @@ -2215,7 +2216,8 @@ var __e = null, __g = null;
}
function notify(record){
var chain = record.c;
if(chain.length)asap(function(){
// strange IE + webpack dev server bug - use .call(global)
if(chain.length)asap.call(global, function(){
var value = record.v
, ok = record.s == 1
, i = 0;
Expand Down Expand Up @@ -2261,11 +2263,12 @@ var __e = null, __g = null;
record.s = 2;
record.a = record.c.slice();
setTimeout(function(){
asap(function(){
// strange IE + webpack dev server bug - use .call(global)
asap.call(global, function(){
if(isUnhandled(promise = record.p)){
if(cof(process) == 'process'){
if(isNode){
process.emit('unhandledRejection', value, promise);
} else if(global.console && isFunction(console.error)){
} else if(global.console && console.error){
console.error('Unhandled promise rejection', value);
}
}
Expand All @@ -2282,7 +2285,8 @@ var __e = null, __g = null;
record = record.r || record; // unwrap
try {
if(then = isThenable(value)){
asap(function(){
// strange IE + webpack dev server bug - use .call(global)
asap.call(global, function(){
var wrapper = {r: record, d: false}; // wrap
try {
then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1));
Expand Down Expand Up @@ -2431,8 +2435,6 @@ var __e = null, __g = null;
, process = global.process
, setTask = global.setImmediate
, clearTask = global.clearImmediate
, postMessage = global.postMessage
, addEventListener = global.addEventListener
, MessageChannel = global.MessageChannel
, counter = 0
, queue = {}
Expand Down Expand Up @@ -2470,11 +2472,11 @@ var __e = null, __g = null;
};
// Modern browsers, skip implementation for WebWorkers
// IE8 has postMessage, but it's sync & typeof its postMessage is object
} else if(addEventListener && isFunction(postMessage) && !global.importScripts){
} else if(global.addEventListener && isFunction(global.postMessage) && !global.importScripts){
defer = function(id){
postMessage(id, '*');
global.postMessage(id, '*');
};
addEventListener('message', listner, false);
global.addEventListener('message', listner, false);
// WebWorkers
} else if(isFunction(MessageChannel)){
channel = new MessageChannel;
Expand Down Expand Up @@ -3194,10 +3196,10 @@ var __e = null, __g = null;
/* 78 */
/***/ function(module, exports, __webpack_require__) {

// https://gist.github.com/kangax/9698100
// https://github.com/benjamingr/RexExp.escape
var $def = __webpack_require__(9);
$def($def.S, 'RegExp', {
escape: __webpack_require__(16)(/([\\\-[\]{}()*+?.,^$|])/g, '\\$1', true)
escape: __webpack_require__(16)(/[\/\\^$*+?.()|[\]{}]/g, '\\$&', true)
});

/***/ },
Expand Down
6 changes: 3 additions & 3 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.

30 changes: 16 additions & 14 deletions client/library.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* core-js 0.9.16
* core-js 0.9.17
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
Expand Down Expand Up @@ -598,7 +598,7 @@ var __e = null, __g = null;

var $ = __webpack_require__(2)
, SHARED = '__core-js_shared__'
, store = $.g[SHARED] || $.hide($.g, SHARED, {})[SHARED];
, store = $.g[SHARED] || ($.g[SHARED] = {});
module.exports = function(key){
return store[key] || (store[key] = {});
};
Expand Down Expand Up @@ -1987,6 +1987,7 @@ var __e = null, __g = null;
, PROMISE = 'Promise'
, global = $.g
, process = global.process
, isNode = cof(process) == 'process'
, asap = process && process.nextTick || __webpack_require__(58).set
, P = global[PROMISE]
, isFunction = $.isFunction
Expand Down Expand Up @@ -2048,7 +2049,8 @@ var __e = null, __g = null;
}
function notify(record){
var chain = record.c;
if(chain.length)asap(function(){
// strange IE + webpack dev server bug - use .call(global)
if(chain.length)asap.call(global, function(){
var value = record.v
, ok = record.s == 1
, i = 0;
Expand Down Expand Up @@ -2094,11 +2096,12 @@ var __e = null, __g = null;
record.s = 2;
record.a = record.c.slice();
setTimeout(function(){
asap(function(){
// strange IE + webpack dev server bug - use .call(global)
asap.call(global, function(){
if(isUnhandled(promise = record.p)){
if(cof(process) == 'process'){
if(isNode){
process.emit('unhandledRejection', value, promise);
} else if(global.console && isFunction(console.error)){
} else if(global.console && console.error){
console.error('Unhandled promise rejection', value);
}
}
Expand All @@ -2115,7 +2118,8 @@ var __e = null, __g = null;
record = record.r || record; // unwrap
try {
if(then = isThenable(value)){
asap(function(){
// strange IE + webpack dev server bug - use .call(global)
asap.call(global, function(){
var wrapper = {r: record, d: false}; // wrap
try {
then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1));
Expand Down Expand Up @@ -2264,8 +2268,6 @@ var __e = null, __g = null;
, process = global.process
, setTask = global.setImmediate
, clearTask = global.clearImmediate
, postMessage = global.postMessage
, addEventListener = global.addEventListener
, MessageChannel = global.MessageChannel
, counter = 0
, queue = {}
Expand Down Expand Up @@ -2303,11 +2305,11 @@ var __e = null, __g = null;
};
// Modern browsers, skip implementation for WebWorkers
// IE8 has postMessage, but it's sync & typeof its postMessage is object
} else if(addEventListener && isFunction(postMessage) && !global.importScripts){
} else if(global.addEventListener && isFunction(global.postMessage) && !global.importScripts){
defer = function(id){
postMessage(id, '*');
global.postMessage(id, '*');
};
addEventListener('message', listner, false);
global.addEventListener('message', listner, false);
// WebWorkers
} else if(isFunction(MessageChannel)){
channel = new MessageChannel;
Expand Down Expand Up @@ -3009,10 +3011,10 @@ var __e = null, __g = null;
/* 74 */
/***/ function(module, exports, __webpack_require__) {

// https://gist.github.com/kangax/9698100
// https://github.com/benjamingr/RexExp.escape
var $def = __webpack_require__(9);
$def($def.S, 'RegExp', {
escape: __webpack_require__(15)(/([\\\-[\]{}()*+?.,^$|])/g, '\\$1', true)
escape: __webpack_require__(15)(/[\/\\^$*+?.()|[\]{}]/g, '\\$&', true)
});

/***/ },
Expand Down
6 changes: 3 additions & 3 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.

30 changes: 16 additions & 14 deletions client/shim.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* core-js 0.9.16
* core-js 0.9.17
* https://github.com/zloirock/core-js
* License: http://rock.mit-license.org
* © 2015 Denis Pushkarev
Expand Down Expand Up @@ -369,7 +369,7 @@ var __e = null, __g = null;

var $ = __webpack_require__(2)
, SHARED = '__core-js_shared__'
, store = $.g[SHARED] || $.hide($.g, SHARED, {})[SHARED];
, store = $.g[SHARED] || ($.g[SHARED] = {});
module.exports = function(key){
return store[key] || (store[key] = {});
};
Expand Down Expand Up @@ -2141,6 +2141,7 @@ var __e = null, __g = null;
, PROMISE = 'Promise'
, global = $.g
, process = global.process
, isNode = cof(process) == 'process'
, asap = process && process.nextTick || __webpack_require__(62).set
, P = global[PROMISE]
, isFunction = $.isFunction
Expand Down Expand Up @@ -2202,7 +2203,8 @@ var __e = null, __g = null;
}
function notify(record){
var chain = record.c;
if(chain.length)asap(function(){
// strange IE + webpack dev server bug - use .call(global)
if(chain.length)asap.call(global, function(){
var value = record.v
, ok = record.s == 1
, i = 0;
Expand Down Expand Up @@ -2248,11 +2250,12 @@ var __e = null, __g = null;
record.s = 2;
record.a = record.c.slice();
setTimeout(function(){
asap(function(){
// strange IE + webpack dev server bug - use .call(global)
asap.call(global, function(){
if(isUnhandled(promise = record.p)){
if(cof(process) == 'process'){
if(isNode){
process.emit('unhandledRejection', value, promise);
} else if(global.console && isFunction(console.error)){
} else if(global.console && console.error){
console.error('Unhandled promise rejection', value);
}
}
Expand All @@ -2269,7 +2272,8 @@ var __e = null, __g = null;
record = record.r || record; // unwrap
try {
if(then = isThenable(value)){
asap(function(){
// strange IE + webpack dev server bug - use .call(global)
asap.call(global, function(){
var wrapper = {r: record, d: false}; // wrap
try {
then.call(value, ctx($resolve, wrapper, 1), ctx($reject, wrapper, 1));
Expand Down Expand Up @@ -2418,8 +2422,6 @@ var __e = null, __g = null;
, process = global.process
, setTask = global.setImmediate
, clearTask = global.clearImmediate
, postMessage = global.postMessage
, addEventListener = global.addEventListener
, MessageChannel = global.MessageChannel
, counter = 0
, queue = {}
Expand Down Expand Up @@ -2457,11 +2459,11 @@ var __e = null, __g = null;
};
// Modern browsers, skip implementation for WebWorkers
// IE8 has postMessage, but it's sync & typeof its postMessage is object
} else if(addEventListener && isFunction(postMessage) && !global.importScripts){
} else if(global.addEventListener && isFunction(global.postMessage) && !global.importScripts){
defer = function(id){
postMessage(id, '*');
global.postMessage(id, '*');
};
addEventListener('message', listner, false);
global.addEventListener('message', listner, false);
// WebWorkers
} else if(isFunction(MessageChannel)){
channel = new MessageChannel;
Expand Down Expand Up @@ -3181,10 +3183,10 @@ var __e = null, __g = null;
/* 78 */
/***/ function(module, exports, __webpack_require__) {

// https://gist.github.com/kangax/9698100
// https://github.com/benjamingr/RexExp.escape
var $def = __webpack_require__(4);
$def($def.S, 'RegExp', {
escape: __webpack_require__(18)(/([\\\-[\]{}()*+?.,^$|])/g, '\\$1', true)
escape: __webpack_require__(18)(/[\/\\^$*+?.()|[\]{}]/g, '\\$&', true)
});

/***/ },
Expand Down
6 changes: 3 additions & 3 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 package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "core-js",
"description": "Standard library",
"version": "0.9.16",
"version": "0.9.17",
"repository": {
"type": "git",
"url": "https://github.com/zloirock/core-js.git"
Expand Down

0 comments on commit 01b50a7

Please sign in to comment.