diff --git a/include/v8-version.h b/include/v8-version.h index 0fe7d9fdc0b..747b82ea934 100644 --- a/include/v8-version.h +++ b/include/v8-version.h @@ -11,7 +11,7 @@ #define V8_MAJOR_VERSION 4 #define V8_MINOR_VERSION 8 #define V8_BUILD_NUMBER 271 -#define V8_PATCH_LEVEL 17 +#define V8_PATCH_LEVEL 18 // Use 1 for candidates and 0 otherwise. // (Boolean macro values are not supported by all preprocessors.) diff --git a/src/preparser.h b/src/preparser.h index c4d7ed45b3a..3cd396ee553 100644 --- a/src/preparser.h +++ b/src/preparser.h @@ -3926,7 +3926,7 @@ ParserBase::ParseArrowFunctionLiteral( // Multiple statement body Consume(Token::LBRACE); bool is_lazily_parsed = - (mode() == PARSE_LAZILY && scope_->AllowsLazyCompilation()); + (mode() == PARSE_LAZILY && scope_->AllowsLazyParsing()); if (is_lazily_parsed) { body = this->NewStatementList(0, zone()); this->SkipLazyFunctionBody(&materialized_literal_count, diff --git a/test/mjsunit/regress/regress-crbug-580934.js b/test/mjsunit/regress/regress-crbug-580934.js new file mode 100644 index 00000000000..02cbfca7964 --- /dev/null +++ b/test/mjsunit/regress/regress-crbug-580934.js @@ -0,0 +1,18 @@ +// Copyright 2016 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: --min-preparse-length=0 + +"use strict"; +{ + let one = () => { + return "example.com"; + }; + + let two = () => { + return one(); + }; + + assertEquals("example.com", two()); +}