Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Restructured slightly so that openHarmony is used by calling
const $ = require("openHarmony.js")instead ofinclude. Each sub-script adds its functions to theexportsobject, which the main scriptrequire()s, and then adds the attributes of to$.It seems like using
includemay still work, although I haven't tested this thouroughly yet.In the current state, it can run the example script and make a car, although there are several errors with cloning nodes (
TypeError: ambiguous call of overloaded function setValue(), in ...attribute.js ln695), and with linking nodes that don't seem to impact the car.TO DO:
this.__proto__[classItem] = $[classItem]which I thought would add them to the prototype of the global scope, like the regular API functions, but they ended up as members of the top-levelthis, so I obviously don't understand what's going on../openHarmony/*,./openHarmony.js, and./examples/openHarmonyExample.jsinlcude. I have a funny setup locally, so I haven't gotten around to looking at these yet