From 3b8292d496a27b5f0d7a90010e77afa101d7f872 Mon Sep 17 00:00:00 2001 From: Denis Pushkarev Date: Wed, 24 Feb 2016 10:42:08 +0600 Subject: [PATCH] [promise] fix typo in feature detection --- library/modules/es6.promise.js | 2 +- modules/es6.promise.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/library/modules/es6.promise.js b/library/modules/es6.promise.js index 014e2eb38a33..31457f8c62ff 100644 --- a/library/modules/es6.promise.js +++ b/library/modules/es6.promise.js @@ -27,7 +27,7 @@ var USE_NATIVE = !!function(){ var promise = $Promise.resolve(1) , FakePromise1 = promise.constructor = function(exec){ exec(empty, empty); } , FakePromise2 = function(exec){ exec(empty, empty); }; - require('./_object-dp')(FakePromise1, require('./_wks')('species'), {value: FakePromise2}); + require('./_object-dp').f(FakePromise1, require('./_wks')('species'), {value: FakePromise2}); // unhandled rejections tracking support, NodeJS Promise without it fails @@species test return (isNode || typeof PromiseRejectionEvent == 'function') && promise.then(empty) instanceof FakePromise2; } catch(e){ /* empty */ } diff --git a/modules/es6.promise.js b/modules/es6.promise.js index 014e2eb38a33..31457f8c62ff 100644 --- a/modules/es6.promise.js +++ b/modules/es6.promise.js @@ -27,7 +27,7 @@ var USE_NATIVE = !!function(){ var promise = $Promise.resolve(1) , FakePromise1 = promise.constructor = function(exec){ exec(empty, empty); } , FakePromise2 = function(exec){ exec(empty, empty); }; - require('./_object-dp')(FakePromise1, require('./_wks')('species'), {value: FakePromise2}); + require('./_object-dp').f(FakePromise1, require('./_wks')('species'), {value: FakePromise2}); // unhandled rejections tracking support, NodeJS Promise without it fails @@species test return (isNode || typeof PromiseRejectionEvent == 'function') && promise.then(empty) instanceof FakePromise2; } catch(e){ /* empty */ }