@@ -5,7 +5,6 @@ const common = require('../common');
5
5
const assert = require ( 'assert' ) ;
6
6
7
7
const {
8
- PromisePrototypeCatch,
9
8
PromisePrototypeThen,
10
9
SafePromiseAll,
11
10
SafePromiseAllSettled,
@@ -14,16 +13,15 @@ const {
14
13
SafePromiseRace,
15
14
} = require ( 'internal/test/binding' ) . primordials ;
16
15
17
- Array . prototype [ Symbol . iterator ] = common . mustNotCall ( ) ;
18
- Promise . all = common . mustNotCall ( ) ;
19
- Promise . allSettled = common . mustNotCall ( ) ;
20
- Promise . any = common . mustNotCall ( ) ;
21
- Promise . race = common . mustNotCall ( ) ;
22
- Promise . prototype . catch = common . mustNotCall ( ) ;
23
- Promise . prototype . finally = common . mustNotCall ( ) ;
24
- Promise . prototype . then = common . mustNotCall ( ) ;
16
+ Array . prototype [ Symbol . iterator ] = common . mustNotCall ( '%Array.prototype%[@@iterator]' ) ;
17
+ Promise . all = common . mustNotCall ( '%Promise%.all' ) ;
18
+ Promise . allSettled = common . mustNotCall ( '%Promise%.allSettled' ) ;
19
+ Promise . any = common . mustNotCall ( '%Promise%.any' ) ;
20
+ Promise . race = common . mustNotCall ( '%Promise%.race' ) ;
21
+ Promise . prototype . catch = common . mustNotCall ( '%Promise.prototype%.catch' ) ;
22
+ Promise . prototype . finally = common . mustNotCall ( '%Promise.prototype%.finally' ) ;
23
+ Promise . prototype . then = common . mustNotCall ( '%Promise.prototype%.then' ) ;
25
24
26
- assertIsPromise ( PromisePrototypeCatch ( Promise . reject ( ) , common . mustCall ( ) ) ) ;
27
25
assertIsPromise ( PromisePrototypeThen ( test ( ) , common . mustCall ( ) ) ) ;
28
26
assertIsPromise ( SafePromisePrototypeFinally ( test ( ) , common . mustCall ( ) ) ) ;
29
27
0 commit comments