# HG changeset patch # User Paul Boddie # Date 1485210499 -3600 # Node ID 8f44e9dcfe6a7c49c26e49fb16f4454f7b91a392 # Parent 644952535f7ac171099b82aaf6671e4f8791ef71 Make sure that get_using actually tests the context. diff -r 644952535f7a -r 8f44e9dcfe6a templates/native/program.c --- a/templates/native/program.c Mon Jan 23 23:01:11 2017 +0100 +++ b/templates/native/program.c Mon Jan 23 23:28:19 2017 +0100 @@ -30,13 +30,8 @@ { __attr * const callable = &__args[1]; __attr * const instance = &__args[2]; - __attr out; - out = __replace_context(instance->value, *callable); - if (out.value == 0) - __raise_type_error(); - - return out; + return __test_context(instance->value, *callable); } /* Module initialisation. */