96698b55e0
Per https://github.com/tc39/test262/pull/956, André believes that ASI should be permitted in these situations. BUG= R=marja@chromium.org, adamk@chromium.org, littledan@chromium.org Change-Id: I5602d8a507576607750ffa9e873e1bfa53dd3523 Reviewed-on: https://chromium-review.googlesource.com/472568 Reviewed-by: Marja Hölttä <marja@chromium.org> Commit-Queue: Caitlin Potter <caitp@igalia.com> Cr-Commit-Position: refs/heads/master@{#44585}
15 lines
329 B
JavaScript
15 lines
329 B
JavaScript
// Copyright 2017 the V8 project authors. All rights reserved.
|
|
// Use of this source code is governed by a BSD-style license that can be
|
|
// found in the LICENSE file.
|
|
|
|
var let = 0;
|
|
function* generator() {
|
|
let
|
|
yield 0;
|
|
}
|
|
|
|
let it = generator();
|
|
let {value, done} = it.next();
|
|
assertEquals(0, value);
|
|
assertEquals(false, done);
|