WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Ensure that instrumentation works with functions that return coroutines. #10

@jmalloc

Description

@jmalloc

That is:

use Generator as Coroutine;

function a() : Coroutine
{
   yield 1;
}

/**
 * This function is annotated as coroutine, but is not actually a generator,
 * which is probably tripping up the stack trace generator.
 */
function b() : Coroutine
{
    return a();
}

FYI @ezzatron

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions