Index: src/builtins/builtins-regexp.cc |
diff --git a/src/builtins/builtins-regexp.cc b/src/builtins/builtins-regexp.cc |
index 6d40ec6d00f790b950af45258eb2c1be24e7a4f0..a622ddfe28be60cb6dc056b0eeff725c07a3aeb0 100644 |
--- a/src/builtins/builtins-regexp.cc |
+++ b/src/builtins/builtins-regexp.cc |
@@ -398,8 +398,7 @@ Node* RegExpBuiltinsAssembler::ThrowIfNotJSReceiver( |
CallRuntime(Runtime::kThrowTypeError, context, message_id, method_name_str, |
value_str); |
- var_value_map.Bind(UndefinedConstant()); |
- Goto(&out); // Never reached. |
+ Unreachable(); |
} |
Bind(&out); |
@@ -1090,7 +1089,7 @@ void RegExpBuiltinsAssembler::FlagGetter(JSRegExp::Flag flag, |
isolate->factory()->NewStringFromAsciiChecked(method_name)); |
CallRuntime(Runtime::kThrowTypeError, context, message_id, |
method_name_str); |
- Return(UndefinedConstant()); // Never reached. |
+ Unreachable(); |
} |
} |
} |