91b87e7a28
Arrow function parameter lists are parsed as expressions. When an identifier is found a VariableProxy is created and added to the list of unresolved variables for the scope. When parsing a function lazily, the scope has been already resolved, so with this patch only the VariableProxy is created, without adding it as an unresolved variable in the scope. BUG=v8:3501 LOG=Y Review URL: https://codereview.chromium.org/880253004 Cr-Commit-Position: refs/heads/master@{#26328}
12 lines
328 B
JavaScript
12 lines
328 B
JavaScript
// Copyright 2014 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.
|
|
|
|
// Flags: --harmony-arrow-functions
|
|
|
|
// See: http://code.google.com/p/v8/issues/detail?id=3501
|
|
|
|
"use strict";
|
|
let lift = f => (x, k) => k (f (x));
|
|
lift(isNaN);
|