11cb0ef41Sopenharmony_ciimport { strictEqual } from 'assert';
21cb0ef41Sopenharmony_ci
31cb0ef41Sopenharmony_ciexport function jsFn () {
41cb0ef41Sopenharmony_ci  state = 'WASM JS Function Executed';
51cb0ef41Sopenharmony_ci  return 42;
61cb0ef41Sopenharmony_ci}
71cb0ef41Sopenharmony_ci
81cb0ef41Sopenharmony_ciexport let state = 'JS Function Executed';
91cb0ef41Sopenharmony_ci
101cb0ef41Sopenharmony_ciexport function jsInitFn () {
111cb0ef41Sopenharmony_ci  strictEqual(state, 'JS Function Executed');
121cb0ef41Sopenharmony_ci  state = 'WASM Start Executed';
131cb0ef41Sopenharmony_ci}