Index: src/interpreter/bytecode-array-builder.cc |
diff --git a/src/interpreter/bytecode-array-builder.cc b/src/interpreter/bytecode-array-builder.cc |
index 12b474451fa69a77ce83821bc8fbc0eb145a027a..c513663a2f97e06d713ae2c418227d597dcf2218 100644 |
--- a/src/interpreter/bytecode-array-builder.cc |
+++ b/src/interpreter/bytecode-array-builder.cc |
@@ -1341,7 +1341,7 @@ bool BytecodeArrayBuilder::RegisterIsValid(Register reg, |
return false; |
} |
- if (reg.is_function_context() || reg.is_function_closure() || |
+ if (reg.is_current_context() || reg.is_function_closure() || |
reg.is_new_target()) { |
return true; |
} else if (reg.is_parameter()) { |