if (CYIsStrictEqual(context, theory, practice)) {
JSValueRef name(CYGetProperty(context, constructor, name_s));
- if (!JSValueIsUndefined(context, name))
- str << "new" << ' ' << CYPoolUTF8String(pool, context, CYJSString(context, name));
+ if (!JSValueIsUndefined(context, name)) {
+ auto utf8(CYPoolUTF8String(pool, context, CYJSString(context, name)));
+ if (utf8 != "Object")
+ str << "new" << ' ' << utf8;
+ }
}
}
return length == size && memcmp(value, data, length) == 0;
}
+ bool operator !=(const char *value) const {
+ size_t length(strlen(data));
+ return length != size || memcmp(value, data, length) != 0;
+ }
+
operator std::string() const {
return std::string(data, size);
}