diff --git a/platform/node/src/node_expression.cpp b/platform/node/src/node_expression.cpp index 81d5c7476..7e59847da 100644 --- a/platform/node/src/node_expression.cpp +++ b/platform/node/src/node_expression.cpp @@ -42,7 +42,8 @@ type::Type parseType(v8::Local type) { {"color", type::Color}, {"value", type::Value}, {"formatted", type::Formatted}, - {"number-format", type::String}}; + {"number-format", type::String}, + {"resolvedImage", type::Image}}; v8::Local v8kind = Nan::Get(type, Nan::New("kind").ToLocalChecked()).ToLocalChecked(); std::string kind(*v8::String::Utf8Value(v8kind)); @@ -220,6 +221,8 @@ struct ToValue { return scope.Escape(result); } + + v8::Local operator()(const Image& image) { return toJS(image.toValue()); } }; v8::Local toJS(const Value& value) {