Skip to content

Commit 4ada4c2

Browse files
test: test prototype with NULL value
Co-authored-by: Chengzhong Wu <[email protected]>
1 parent af3d9ec commit 4ada4c2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

test/js-native-api/test_object/test_object.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -743,10 +743,9 @@ static napi_value TestCreateObjectWithPropertiesEmpty(napi_env env,
743743
napi_value result;
744744

745745
napi_value null_prototype;
746-
NODE_API_CALL(env, napi_get_null(env, &null_prototype));
747746
NODE_API_CALL(env,
748747
napi_create_object_with_properties(
749-
env, null_prototype, NULL, NULL, 0, &result));
748+
env, NULL, NULL, NULL, 0, &result));
750749

751750
return result;
752751
}

0 commit comments

Comments
 (0)