• neis's avatar
    [generators] Implement Generator.prototype.return. · dbd86408
    neis authored
    Note: This is currently only used by yield*, we still need to support it in
    other places (such as for-of loops).  It can be used manually of course.
    
    (This CL does not touch the full-codegen implementation of yield* because that
    code is already dead.  The yield* desugaring already supports return and doesn't
    need to be touched.)
    
    BUG=v8:3566
    LOG=y
    
    Review URL: https://codereview.chromium.org/1639343005
    
    Cr-Commit-Position: refs/heads/master@{#33744}
    dbd86408
runtime.h 49.7 KB