// Create object arg_order in the native layer napi_value arg_object; napi_create_object(env, &arg_object);
napi_value testNum, testString; // Set the property testNum and assign a value of 123 to the arg_order object created above napi_create_int32(env, 123, &testNum); napi_set_named_property(env, arg_object, "testNum", testNum); // Set the property testString and assign 'Pure' to the arg_order object created above napi_create_string_utf8(env, "Pure", NAPI_AUTO_LENGTH, &testString); napi_set_named_property(env, arg_object, "testString", testString);