Fix toStringName for Proxies and add support for normal instances
Created attachment 287170 [details] Patch
Created attachment 287172 [details] Patch
Comment on attachment 287172 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=287172&action=review > Source/JavaScriptCore/runtime/ObjectPrototype.cpp:301 > + String&& tag = thisObject->methodTable(exec->vm())->toStringName(thisObject, exec); Why the && here? Why not just do: String tag = ...; ... String newString = WTF::tryMakeString("[object ", WTFMove(tag), "]"); ...
Comment on attachment 287172 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=287172&action=review >> Source/JavaScriptCore/runtime/ObjectPrototype.cpp:301 >> + String&& tag = thisObject->methodTable(exec->vm())->toStringName(thisObject, exec); > > Why the && here? > Why not just do: > String tag = ...; > ... > String newString = WTF::tryMakeString("[object ", WTFMove(tag), "]"); > ... Yeah, I dunno why I did it this way. I'll switch.
Created attachment 287285 [details] Patch for landing
Comment on attachment 287285 [details] Patch for landing Clearing flags on attachment: 287285 Committed r205131: <http://trac.webkit.org/changeset/205131>
All reviewed patches have been landed. Closing bug.