fix: stack overflow!!

This commit is contained in:
TopchetoEU 2025-01-28 13:10:58 +02:00
parent 120e59577d
commit 58d6110e1d
Signed by: topchetoeu
GPG Key ID: 6531B8583E5F6ED4
2 changed files with 4 additions and 4 deletions

View File

@ -323,7 +323,7 @@ public final class Frame {
/** /**
* Induces a value on the stack (as if it were returned by the last function call) * Induces a value on the stack (as if it were returned by the last function call)
* and executes the next instruction in the frame. * and executes the next instruction in the frame.
* *
* @param value The value to induce * @param value The value to induce
*/ */
public final Value next(Value value) { public final Value next(Value value) {
@ -334,7 +334,7 @@ public final class Frame {
* Note that this is different than just throwing the error outside the * Note that this is different than just throwing the error outside the
* function, as the function executed could have a try-catch which * function, as the function executed could have a try-catch which
* would otherwise handle the error * would otherwise handle the error
* *
* @param error The error to induce * @param error The error to induce
*/ */
public final Value induceError(EngineException error) { public final Value induceError(EngineException error) {
@ -346,7 +346,7 @@ public final class Frame {
* Note that this is different than just returning the value outside the * Note that this is different than just returning the value outside the
* function, as the function executed could have a try-catch which * function, as the function executed could have a try-catch which
* would otherwise handle the error * would otherwise handle the error
* *
* @param value The retunr value to induce * @param value The retunr value to induce
*/ */
public final Value induceReturn(Value value) { public final Value induceReturn(Value value) {

View File

@ -57,7 +57,7 @@ public final class StringValue implements PrimitiveValue {
} }
} }
return StringValue.this.getOwnMember(env, key); return PrimitiveValue.super.getOwnMember(env, key);
} }
@Override public Set<String> getOwnMembers(Environment env, boolean onlyEnumerable) { @Override public Set<String> getOwnMembers(Environment env, boolean onlyEnumerable) {