Skip to content

Instantly share code, notes, and snippets.

@shelajev

shelajev/pol.cob

Last active Oct 15, 2020
Embed
What would you like to do?
*> 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
You can’t perform that action at this time.