Skip to content

Commit

Permalink
[hapjs-platform#629]沙箱fix:jsenv内部错误导致的开启断点调试崩溃以及console输出崩溃问题
Browse files Browse the repository at this point in the history
  • Loading branch information
charles-chai authored and jianghai33 committed Dec 12, 2023
1 parent cb4e830 commit ce1ad85
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified core/runtime/android/runtime/libs/jsenv-no-v8symbols.aar
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,12 @@ struct JAccessWrapper {
jlong value_;

JAccessWrapper(T v, bool isStatic) {
value_ = reinterpret_cast<jlong>(v) | (isStatic ? 1 : 0);
value_ = (reinterpret_cast<jlong>(v) << 2)| (isStatic ? 1 : 0);
}

JAccessWrapper(jlong v) : value_(v) {}

T id() const { return reinterpret_cast<T>(value_ & ~1); }
T id() const { return reinterpret_cast<T>(value_ >> 2); }

bool isStatic() const { return value_ & 1; }

Expand Down

0 comments on commit ce1ad85

Please sign in to comment.