ID:2144555
 
Resolved
Using "name" in a non-macro winset failed when the name didn't match any valid macro name.
BYOND Version:511.1355
Operating System:Windows 10 Pro 64-bit
Web Browser:Chrome 52.0.2743.116
Applies to:Webclient
Status: Resolved (511.1356)

This issue has been resolved.
Descriptive Problem Summary:

The following code will trigger a Javascript error:
winset(usr, "element", "cmd=set_name;name=Dat Boi")


Having one of props' members be "name" (non-case sensitive) directly generates this error:



webclient.dart.js:22943 Uncaught wrapException @ webclient.dart.js:22943$add @ webclient.dart.js:21353nameToJS$1 @ webclient.dart.js:10277winset$2 @ webclient.dart.js:18398processWinsetMessage$1 @ webclient.dart.js:8199processMessage$1 @ webclient.dart.js:7425dart.ByondClient_closure3.call$1 @ webclient.dart.js:8780call$0 @ webclient.dart.js:24091eval$1 @ webclient.dart.js:21998_callInIsolate @ webclient.dart.js:21650dart.invokeClosure @ webclient.dart.js:23093(anonymous function) @ webclient.dart.js:23112
VM13505:173 Object {cmd: "update-label", data: "Lobby: <span class='special_text'>2</span> people …-Game: <span class='special_text'>0</span> people", ___dart__$dart_dartObject_ZxYxX_0_: JsObject}
Is the element you're setting a macro, and if not does it already exist?

The reason I ask is that nameToJS() is a function used for macros, but with an existing non-macro element I wouldn't expect this to be an issue. I'll look into it further, though.
Lummox JR resolved issue with message:
Using "name" in a non-macro winset failed when the name didn't match any valid macro name.