Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Gerwitz <mike.gerwitz@rtspecialty.com>2018-02-16 15:44:09 -0500
committerMike Gerwitz <mike.gerwitz@rtspecialty.com>2018-02-19 15:21:14 -0500
commit9e421daf679dfb39251a9325f8ad97ea479afbe6 (patch)
treec31e1fef2bd99722919c128187d70ff9f686e837 /progtest/src
parentb21494596305ee21cf5f83d28aaf154fcee8a2ca (diff)
downloadtame-9e421daf679dfb39251a9325f8ad97ea479afbe6.tar.gz
tame-9e421daf679dfb39251a9325f8ad97ea479afbe6.tar.bz2
tame-9e421daf679dfb39251a9325f8ad97ea479afbe6.zip
progtest: bug: constants are not initialized until rating
Ugh, this is nasty.
Diffstat (limited to 'progtest/src')
-rw-r--r--progtest/src/env.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/progtest/src/env.js b/progtest/src/env.js
index 8eeb837..7e85854 100644
--- a/progtest/src/env.js
+++ b/progtest/src/env.js
@@ -52,6 +52,10 @@ module.exports = {
.use( ConstResolver( program ) )
( yaml_reader, TestCase );
+ // XXX: work around issue with consts not being initialized ahead of
+ // time (initialized during actual rating...!)
+ program.rater( {} );
+
return yaml => new Promise( ( resolve, reject ) =>
{
try