@@ -1572,7 +1572,7 @@ Copyright (c) 2017, Tetsuya Mori <
[email protected] >. All rights reserved.
1572
1572
function * gen ( ) { }
1573
1573
switch ( f ) {
1574
1574
case Function :
1575
- args = hook . FunctionArguments ( '__hook__' , [ [ context , { } ] ] , 'cachedMethod ' , args ) ;
1575
+ args = hook . FunctionArguments ( '__hook__' , [ [ context , { } ] ] , 'method ' , args ) ;
1576
1576
break ;
1577
1577
case '()' :
1578
1578
switch ( thisArg ) {
@@ -1582,14 +1582,14 @@ Copyright (c) 2017, Tetsuya Mori <
[email protected] >. All rights reserved.
1582
1582
if ( args [ 1 ] ) {
1583
1583
switch ( args [ 1 ] [ 0 ] ) {
1584
1584
case Function :
1585
- args1 = [ args [ 1 ] [ 0 ] , hook . FunctionArguments ( '__hook__' , [ [ context , { } ] ] , 'cachedMethod ' , args [ 1 ] [ 1 ] ) ] ;
1585
+ args1 = [ args [ 1 ] [ 0 ] , hook . FunctionArguments ( '__hook__' , [ [ context , { } ] ] , 'method ' , args [ 1 ] [ 1 ] ) ] ;
1586
1586
if ( args [ 1 ] [ 2 ] ) {
1587
1587
args1 . push ( args [ 1 ] [ 2 ] ) ;
1588
1588
}
1589
1589
break ;
1590
1590
default :
1591
1591
if ( args [ 1 ] [ 0 ] . prototype instanceof Function ) {
1592
- args1 = [ args [ 1 ] [ 0 ] , hook . FunctionArguments ( '__hook__' , [ [ context , { } ] ] , 'cachedMethod ' , args [ 1 ] [ 1 ] , args [ 1 ] [ 0 ] . prototype . constructor === gen . constructor ) ] ;
1592
+ args1 = [ args [ 1 ] [ 0 ] , hook . FunctionArguments ( '__hook__' , [ [ context , { } ] ] , 'method ' , args [ 1 ] [ 1 ] , args [ 1 ] [ 0 ] . prototype . constructor === gen . constructor ) ] ;
1593
1593
if ( args [ 1 ] [ 2 ] ) {
1594
1594
args1 . push ( args [ 1 ] [ 2 ] ) ;
1595
1595
}
@@ -1602,7 +1602,7 @@ Copyright (c) 2017, Tetsuya Mori <
[email protected] >. All rights reserved.
1602
1602
if ( args [ 1 ] ) {
1603
1603
switch ( args [ 1 ] [ 0 ] ) {
1604
1604
case Function :
1605
- args1 = [ args [ 1 ] [ 0 ] , args [ 1 ] [ 1 ] , hook . FunctionArguments ( '__hook__' , [ [ context , { } ] ] , 'cachedMethod ' , args [ 1 ] [ 2 ] ) ] ;
1605
+ args1 = [ args [ 1 ] [ 0 ] , args [ 1 ] [ 1 ] , hook . FunctionArguments ( '__hook__' , [ [ context , { } ] ] , 'method ' , args [ 1 ] [ 2 ] ) ] ;
1606
1606
break ;
1607
1607
default :
1608
1608
break ;
@@ -1623,11 +1623,11 @@ Copyright (c) 2017, Tetsuya Mori <
[email protected] >. All rights reserved.
1623
1623
default :
1624
1624
if ( typeof f === 'function' ) {
1625
1625
if ( f . prototype instanceof Function && newTarget ) {
1626
- args = hook . FunctionArguments ( '__hook__' , [ [ context , { } ] ] , 'cachedMethod ' , args , f . prototype . constructor === gen . constructor ) ;
1626
+ args = hook . FunctionArguments ( '__hook__' , [ [ context , { } ] ] , 'method ' , args , f . prototype . constructor === gen . constructor ) ;
1627
1627
}
1628
1628
else if ( newTarget === '' ) {
1629
1629
if ( args [ 0 ] && Object . getPrototypeOf ( args [ 0 ] ) === Function ) {
1630
- args = [ args [ 0 ] , ...hook . FunctionArguments ( '__hook__' , [ [ context , { } ] ] , 'cachedMethod ' , args . slice ( 1 ) ) ] ;
1630
+ args = [ args [ 0 ] , ...hook . FunctionArguments ( '__hook__' , [ [ context , { } ] ] , 'method ' , args . slice ( 1 ) ) ] ;
1631
1631
}
1632
1632
}
1633
1633
}
0 commit comments