Project

General

Profile

Bug #392

String variables are not returned properly from JavaScript. They cause a type mismatch.

Added by Brian Flanagan almost 4 years ago. Updated over 3 years ago.

Status:
Closed
Priority:
High
Target version:
-
Start date:
06/17/2020
Due date:
% Done:

0%

Estimated time:
1:00 h
Affected version:

Description

Example:

This works:
Print { navigator.appCodeName }

Result is:
Mozilla

This does NOT work:
X$ = { navigator.userAgent }

Result is:
Error: type mismatch at line...

#1

Updated by Brian Flanagan almost 4 years ago

  • Affected version changed from 0.9.9.2 to 0.9.9.3
#2

Updated by Laurant Weill over 3 years ago

  • Priority changed from Normal to High
#3

Updated by Brian Flanagan over 3 years ago

  • Assignee set to Francois Lionet
  • Estimated time set to 24:00 h
  • Affected version changed from 0.9.9.3 to Beta RC2

Just assigned this to Francois, as this is a non-trivial transpiler issue.

I also reset the affected version, since this is definitely still an issue in RC2.
(Please adjust the estimated time appropriately, Francois!)

#4

Updated by Brian Flanagan over 3 years ago

  • Assignee changed from Francois Lionet to Brian Flanagan
  • Estimated time changed from 24:00 h to 1:00 h
#5

Updated by Brian Flanagan over 3 years ago

  • Status changed from New to Resolved

Thanks for the help, Francois! It was easier than I thought to fix this.

Just using $ before a JavaScript return value will do the string conversion.

The JavaScript and AOZ string formats are not compatible, so conversion was needed.

NOTE: We need to add $ to our documentation!

#6

Updated by Brian Flanagan over 3 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF