| Index: src/preparser.cc
|
| diff --git a/src/preparser.cc b/src/preparser.cc
|
| index 9e72422eb7deb1c28f824ac86937068d2eb5ddbe..8e34f4cae245e83f9c98950daab61876c89e3eef 100644
|
| --- a/src/preparser.cc
|
| +++ b/src/preparser.cc
|
| @@ -1016,7 +1016,15 @@ PreParser::Expression PreParser::ParseV8Intrinsic(bool* ok) {
|
| }
|
| // Allow "eval" or "arguments" for backward compatibility.
|
| ParseIdentifier(kAllowEvalOrArguments, CHECK_OK);
|
| - ParseArguments(ok);
|
| + Scanner::Location spread_pos;
|
| + ParseArguments(&spread_pos, ok);
|
| +
|
| + if (spread_pos.IsValid()) {
|
| + // Maybe support spread calls for intrinsics/runtime calls?
|
| + PreParserTraits::ReportMessageAt(spread_pos, "spreadcall_intrinsic");
|
| + *ok = false;
|
| + return Expression::Default();
|
| + }
|
|
|
| return Expression::Default();
|
| }
|
|
|