Skip to content

class-model: fix getApi() import#382

Open
glass-panel wants to merge 1 commit intofrida:mainfrom
glass-panel:main
Open

class-model: fix getApi() import#382
glass-panel wants to merge 1 commit intofrida:mainfrom
glass-panel:main

Conversation

@glass-panel
Copy link

It appears that the getApi function in lib/class-model.js was not correctly imported.

import { withRunnableArtThread, getArtClassSpec, getArtMethodSpec, getArtFieldSpec, getApi } from './android.js';

This caused related C modules to incorrectly look up libraries and symbols from the ART environment instead of the JVM environment during compilation.

This mismatch leads to failures in many methods like Java.use, resulting in errors such as:

  • TypeError: Cannot read properties of null (reading 'jvmti')
  • Error: unable to find module 'libc.so' Issue #372

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant