v8 and require a json file
Exploring some use cases for the declareattribute feature in [v8] I stumbled upon not being able to require a json file (v8: could not find file attribute-bingo.json), which is possible in JavaScript.
I'm not sure if this happens due to some max search path issues or if its just be design, a JavaScript feature that was dropped for some reason.
I tried several approaches, including setting an explicit max project search path - although this should not be necessary as the json file is under the project root folder.
+++
In the end it does not bock the idea, as I found out that declareattribute can also be called during runtime - I thought that this could only be executed in the global area of the JavaScript as this is a "aspect of infrastructure" and hence could only be called once and during script start.
But surprise surprise, it can be called during runtime ... and hence the idea of changing the value range of an enum (or any) attribute can be changed at any time, which I need because I have these value ranges stored in pattrstorage and hence they are only available beyond script start.
Nevertheless I am curious if calling declareattribute at runtime is a good idea, or if this can screw up things especially when executing it several times, by recalling several "storage slots" of patterstorage and applying them via declareattribute as the valid value range.
I guess this needs some C74 background information about how these attribute are implemented - maybe the same way as the new v8 (dynamic) properties and hence the normal JS way (where type redeclarations at runtime are welcome)?

If someone is wondering about the strange looking JavasScript in "testifyAttributes.js" - its a transpilation of a TypeScript file.