PreviewWidget.add_widget( widget ) throws "Error: expected an exported object"
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
unity-js-scopes |
Fix Committed
|
High
|
Marcus Tomlinson |
Bug Description
Calls to add_widget on expandable PreviewWidgets throws "Error: expected an exported object" (v8-cpp/
Code:
var ingredients = new scopes.
ingredients
ingredients
try
{
for (var i in ingredientsList)
{
var temp = new scopes.
}
}
catch (e)
{
}
Result:
Error
expected an exported object
Error: expected an exported object
at Error (native)
at null.<anonymous> (/home/
Related branches
- Alexandre Abreu (community): Approve
- PS Jenkins bot (community): Approve (continuous-integration)
-
Diff: 27 lines (+3/-3)2 files modifiedsrc/bindings/src/preview-widget.cc (+2/-2)
src/bindings/src/preview-widget.h (+1/-1)
summary: |
- add_widget method throws "Error: expected an exported object" + PreviewWidget.add_widget( widget ) throws "Error: expected an exported + object" |
Changed in unity-js-scopes: | |
assignee: | nobody → Marcus Tomlinson (marcustomlinson) |
importance: | Undecided → High |
status: | New → In Progress |
Changed in unity-js-scopes: | |
status: | In Progress → Fix Committed |