Skip to content

Instantly share code, notes, and snippets.

@shelajev
Last active October 15, 2020 13:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save shelajev/6cb1a30c5082b542197f1fba6014638f to your computer and use it in GitHub Desktop.
Save shelajev/6cb1a30c5082b542197f1fba6014638f to your computer and use it in GitHub Desktop.
*> interoperability fields
01 WS-SHA3-256-JS-POINTER PROGRAM-POINTER.
01 WS-JS PIC X(3).
01 WS-SHA3-256-JS-FILENAME PIC X(50).
MOVE Z'js' TO WS-JS.
MOVE Z'SHA3-256.js' TO WS-SHA3-256-JS-FILENAME.
*> get javascript function
CALL STATIC "polyglot_eval_file" using
WS-JS
WS-SHA3-256-JS-FILENAME
returning WS-SHA3-256-JS-POINTER
END-CALL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment