musictheory / NilScript

Objective-C-style language superset of JavaScript with a tiny, simple runtime
Other
50 stars 5 forks source link

Error in handleOJConstDeclaration #129

Closed iccir closed 7 years ago

iccir commented 7 years ago

The following code throws a compiler error:

@bridged @const SettingsTableTitleKey                      = "title";
@bridged @const SettingsTableGUIDKey                       = "guid";
@bridged @const ExerciseRequestSettingsTableIDKey

@bridged @const SettingsTableOldSectionsKey                = "old-sections";
TypeError: Cannot read property 'type' of null
    at handleOJConstDeclaration (/Users/iccir/Projects/oj/src/Builder.js:418:33)
    at Controller.traverser.traverse.type (/Users/iccir/Projects/oj/src/Builder.js:544:17)
    at Controller.__execute (/Users/iccir/Projects/oj/node_modules/estraverse/estraverse.js:397:31)
    at Controller.traverse (/Users/iccir/Projects/oj/node_modules/estraverse/estraverse.js:501:28)
    at Traverser.traverse (/Users/iccir/Projects/oj/src/Traverser.js:92:22)
    at Builder.build (/Users/iccir/Projects/oj/src/Builder.js:496:15)
    at async.each.e (/Users/iccir/Projects/oj/src/Compiler.js:289:21)
    at /Users/iccir/Projects/oj/node_modules/async/lib/async.js:181:20
    at Object.async.forEachOf.async.eachOf (/Users/iccir/Projects/oj/node_modules/async/lib/async.js:233:13)
    at Object.async.forEach.async.each (/Users/iccir/Projects/oj/node_modules/async/lib/async.js:209:22)
/Users/iccir/Projects/oj/src/Compiler.js:718
                throw err;