progtest: bug: constants are not initialized until rating

Ugh, this is nasty.
master
Mike Gerwitz 2018-02-16 15:44:09 -05:00
parent b214945963
commit 9e421daf67
2 changed files with 4 additions and 3 deletions

View File

@ -32,8 +32,5 @@ const runner = require( '../src/env' ).console(
program, process.stdout
);
// XXX: work around issue with consts not being initialized ahead of time
program.rater( {} );
runner( case_yaml )
.catch( e => console.error( e ) );

View File

@ -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