Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need internal stack behavior improvement. #308

Closed
Kray-G opened this issue Jul 20, 2021 · 1 comment
Closed

Need internal stack behavior improvement. #308

Kray-G opened this issue Jul 20, 2021 · 1 comment
Assignees
Labels
bug Something isn't working
Milestone

Comments

@Kray-G
Copy link
Owner

Kray-G commented Jul 20, 2021

namespace X1 { class A{} };
namespace X2 { class A{} };
namespace X3 { class A{} };
namespace X4 { class A{} };
namespace X5 { class A{} };
function x1() {
    try {
        return 1;
    } catch (e) {}
}
function x2() {
    try {
        return x1();
    } catch (e) {}
}
function x3() {
    try {
        return x2();
    } catch (e) {}
}
function x4() {
    try {
        return x3();
    } catch (e) {}
}
function x5() {
    try {
        return x4();
    } catch (e) {}
}
System.println(x5());
System._printStack();

Here is the expected result.

1
capacity = 1645, size = 5
frmv = 4, lexv = 8
[ 0] (obj) props:0, ary:0
[ 1] (fnc) adr:0x0, lex:(none)
[ 2] (int) 1
[ 3] (adr) NULL
[ 4] (frm:4, vars:85)
   * [  0] (obj) props:0, ary:0
   * [  1] (obj) props:31, ary:0
   * [  2] (obj) props:30, ary:0
   * [  3] (obj) props:30, ary:0
   * [  4] ...
exception size = 0.
print_stack done.
@Kray-G Kray-G added the bug Something isn't working label Jul 20, 2021
@Kray-G Kray-G added this to the v1.1.0 milestone Jul 20, 2021
@Kray-G Kray-G self-assigned this Jul 20, 2021
@Kray-G
Copy link
Owner Author

Kray-G commented Jul 20, 2021

Fixed at d6ba4d9 and ac0c28e for V1.1.0.

@Kray-G Kray-G closed this as completed in 8b1b1fd Jul 26, 2021
Kray-G added a commit that referenced this issue Jul 26, 2021
fixes #308 and some feedbacks from V1.1.0.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant