Skip to content
This repository was archived by the owner on Aug 5, 2022. It is now read-only.
This repository was archived by the owner on Aug 5, 2022. It is now read-only.

[ashell] Could not parse JS  #785

Closed
Closed
@qiaojingx

Description

@qiaojingx

Description

Could not parse JS only when run test-error.js in ashell

Test Code

test-error.js

Steps to Reproduction

  1. Set 'CONFIG_USB_CDC_ACM=y' in fragments/prj.conf.arduino_101_dev to enable USB CDC ACM device class driver.
  2. Execute "make DEV=ashell" in the latest zephyrJS build
  3. Execute "make dfu" to flash ashell to Arduino101 and Reset device
  4. Use the following command to connect to the ashell from a terminal $ screen /dev/ttyACM0 115200
  5. acm> load test.js and Enter
  6. RAW> /*Paste code for test cases*/ and CTRL+Z to finish transfer
  7. acm> run test.js

Actual Result

After 7: Got error prompt:

[ERR] Could not parse JS
Error

selection_004

Expected Result

After 7: Test case is executed successfully.

Test Builds

Branch Commit Id Target Device Test Date Result
master 06004c9 Arduino 101 Mar 02, 2017 Fail

Additional Information

Test-error works fine in zephyrIDE.
selection_005

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions