Skip to content

CodeCache option is broken since Android Runtime 4.1.0 #1235

@darind

Description

@darind

Environment

Provide version numbers for the following components (information can be retrieved by running tns info in your project folder or by inspecting the package.json of the project):

  • CLI: 5.1.0
  • Cross-platform modules: 5.1.0
  • Android Runtime: 5.1.0

Describe the bug

The codeCache option described in this blog post doesn't work since android runtime 4.1.0

To Reproduce

  1. Create a nativescript app using the CLI: tns create test
  2. Enable the codeCache option in app/package.json:
"android": {
    "v8Flags": "--nolazy --expose_gc",
    "codeCache": "true"
}
  1. Run the app: tns run android

Expected behavior

The application starts successfully and for each .js file, there's a corresponding .js.cache file created on the device containing the compiled script that is used on subsequent runs of the application.

Actual behavior

The application crashes with a SIGSEGV in the Android Runtime.

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions