Skip to content

Commit a7a362c

Browse files
committed
fix(typeofs.simple test): fix throughBoth function used in test by using a curried function
1 parent c1f4b9e commit a7a362c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/js/typeofs.simple

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
'use strict';
1010

1111
const throughJS = x => x;
12-
const throughBoth = python.eval('(lambda x: throughJS(x))', { throughJS });
12+
const throughBoth = python.eval('(lambda func: lambda x: func(x))')(throughJS);
1313

1414
function check(jsval, expected)
1515
{

0 commit comments

Comments
 (0)