Skip to content

Commit

Permalink
test simple libdyntype with AOT
Browse files Browse the repository at this point in the history
  • Loading branch information
xujuntwt95329 committed Dec 18, 2023
1 parent 6585aee commit 5335204
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/ts2wasm_aot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,9 @@ jobs:
target: [
"X86_64", "X86_32"
]
simple_libdyntype: [
"SIMPLE_LIBDYNTYPE=1", ""
]
# node-version: [10.x, 12.x, 14.x, 15.x, 16.x]
# Test the latest version of Node.js plus the last two LTS versions.
# node-version:
Expand Down Expand Up @@ -104,5 +107,5 @@ jobs:

- name: Validate execution
run:
AOT=1 TARGET_ARCH=${{ matrix.target }} npm start
${{ matrix.simple_libdyntype }} AOT=1 TARGET_ARCH=${{ matrix.target }} npm start
working-directory: tools/validate/wamr
9 changes: 4 additions & 5 deletions tools/validate/wamr/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,10 @@ let IGNORE_CASES = [

if (process.env.SIMPLE_LIBDYNTYPE) {
const simple_libdyntype_ignores: string[] = [
'any_func_call:anyFuncCallWithString',
'any_func_call:anyFuncCallInMap',
'any_func_call:anyFuncCallWithCast',
'any_func_call:anyFuncCallWithNoCast',
'array_foreach:array_foreach_closure',
'any_func_call:anyFuncCallInMap' /* dynamic_new_object_with_class not supported */,
'any_func_call:anyFuncCallWithCast' /* dynamic_new_object_with_class not supported */,
'any_func_call:anyFuncCallWithNoCast' /* dynamic_new_object_with_class not supported */,
'array_foreach:array_foreach_closure' /* dynamic_new_object_with_class not supported */,

'any_box_obj:boxObjWithProps' /* key order changed, but result is correct */,
'array_join:array_join_string' /* array.join use string.concat, which is a dynamic invoke */,
Expand Down

0 comments on commit 5335204

Please sign in to comment.