Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit626978e

Browse files
committed
fixcore-js-pure/actual|full/promise/try entries for the callback arguments support
1 parentd42126c commit626978e

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

‎CHANGELOG.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
##Changelog
22
#####Unreleased
3+
- Fixed`core-js-pure/actual|full/promise/try` entries for the callback arguments support
34
- Compat data improvements:
45
-[`JSON.parse` source text access proposal](https://github.com/tc39/proposal-json-parse-with-source) features marked as[supported from FF132](https://bugzilla.mozilla.org/show_bug.cgi?id=1913085)
56
-`self` descriptor[is fixed](https://github.com/denoland/deno/issues/24683) in Deno 1.46.0
Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
'use strict';
22
require('../../modules/es.promise');
33
require('../../modules/esnext.promise.try');
4-
varcall=require('../../internals/function-call');
4+
varapply=require('../../internals/function-apply');
55
varisCallable=require('../../internals/is-callable');
66
varpath=require('../../internals/path');
77

88
varPromise=path.Promise;
99
varpromiseTry=Promise['try'];
1010

11-
module.exports={'try':function(callbackfn){
12-
returncall(promiseTry,isCallable(this) ?this :Promise,callbackfn);
13-
}}['try'];
11+
// eslint-disable-next-line no-unused-vars -- required for arity
12+
module.exports=({'try':function(callbackfn/* , ...args */){
13+
returnapply(promiseTry,isCallable(this) ?this :Promise,arguments);
14+
}})['try'];

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp