diff --git a/meson.build b/meson.build index 45e3932..d8f25f1 100644 --- a/meson.build +++ b/meson.build @@ -68,7 +68,7 @@ endif build_date = run_command('date', '+%Y-%m-%d', check: true).stdout().strip() version_conf = configuration_data() -version_conf.set('ANT_VERSION', '0.0.7.1') +version_conf.set('ANT_VERSION', '0.0.7.3') version_conf.set('ANT_GIT_HASH', git_hash) version_conf.set('ANT_BUILD_DATE', build_date) diff --git a/tests/test_minimal.cjs b/tests/test_minimal.cjs new file mode 100644 index 0000000..b34c955 --- /dev/null +++ b/tests/test_minimal.cjs @@ -0,0 +1,22 @@ +console.log('Testing recursive string assignment with objects'); + +function testRecursion(depth, params) { + if (depth >= 10) return 'done'; + + let paramValue = ''; + // This assignment causes parser corruption in certain contexts + paramValue = 'test'; + + if (paramValue !== '') { + params['test' + depth] = paramValue; + const result = testRecursion(depth + 1, params); + delete params['test' + depth]; + return result; + } + + return 'failed'; +} + +const params = {}; +const result = testRecursion(0, params); +console.log('Result:', result);