Commit a2dd3c88 authored by Marja Hölttä's avatar Marja Hölttä Committed by Commit Bot

[cleanup] Remove dead code

Leftovers from https://chromium-review.googlesource.com/c/v8/v8/+/1254123

Change-Id: I1fde604cbaff636307c8e5c9a7c69bf61bd37d20
Reviewed-on: https://chromium-review.googlesource.com/c/v8/v8/+/2735635Reviewed-by: 's avatarLeszek Swirski <leszeks@chromium.org>
Commit-Queue: Marja Hölttä <marja@chromium.org>
Cr-Commit-Position: refs/heads/master@{#73219}
parent f30bf402
......@@ -48,7 +48,6 @@ MaybeHandle<Object> CreateDynamicFunction(Isolate* isolate,
builder.AppendCharacter('(');
builder.AppendCString(token);
builder.AppendCString(" anonymous(");
bool parenthesis_in_arg_string = false;
if (argc > 1) {
for (int i = 1; i < argc; ++i) {
if (i > 1) builder.AppendCharacter(',');
......@@ -70,14 +69,6 @@ MaybeHandle<Object> CreateDynamicFunction(Isolate* isolate,
}
builder.AppendCString("\n})");
ASSIGN_RETURN_ON_EXCEPTION(isolate, source, builder.Finish(), Object);
// The SyntaxError must be thrown after all the (observable) ToString
// conversions are done.
if (parenthesis_in_arg_string) {
THROW_NEW_ERROR(isolate,
NewSyntaxError(MessageTemplate::kParenthesisInArgString),
Object);
}
}
bool is_code_like = true;
......
......@@ -474,7 +474,6 @@ namespace internal {
T(BadSetterRestParameter, \
"Setter function argument must not be a rest parameter") \
T(ParamDupe, "Duplicate parameter name not allowed in this context") \
T(ParenthesisInArgString, "Function arg string contains parenthesis") \
T(ArgStringTerminatesParametersEarly, \
"Arg string terminates parameters early") \
T(UnexpectedEndOfArgString, "Unexpected end of arg string") \
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment