createEvent broken by mutating strings
See original GitHub issueadding an event with createEvent
{
Duration: 4880,
Effect: "",
Layer: 0,
MarginL: 0,
MarginR: 0,
MarginV: 0,
Name: "",
ReadOrder: 0,
Start: 7870,
Style: 1,
Text: "Text."
}
for some reason creates an event that looks like:
{
Duration: 4880,
Effect: "Text.",
Layer: 0,
MarginL: 0,
MarginR: 0,
MarginV: 0,
Name: "Text.",
ReadOrder: 0,
Start: 7870,
Style: 1,
Text: "Text."
}
breaking the entire renderer, adding more subtitles with the createEvent function overwrites the text, effect and name values of the previous events
Issue Analytics
- State:
- Created 3 years ago
- Comments:5 (2 by maintainers)
Top Results From Across the Web
How to make mutation of a string? JavaScript - Stack Overflow
You are trying to change a primitive String , which is immutable in Javascript. For exmaple, something like below: var myObject = new...
Read more >UI Events - W3C
The first goal is the design of an event system which allows registration of event listeners and describes event flow through a tree...
Read more >EventTarget.addEventListener() - Web APIs | MDN
A case-sensitive string representing the event type to listen for. ... keyCode) { case 5: // some code here… break; case 6: //...
Read more >20 Working with Event Rules
In JD Edwards EnterpriseOne, you create logic using event rules. Event rules are logic statements that are processed when an event, such as...
Read more >Excel VBA Events - An Easy (and Complete) Guide
Excel VBA Events allow you to run a macro when a specific event occurs. An event could be an action such as opening...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
WebIDL uses this 2 generated functions:
and its JS counterpart:
Also the
ensureString
function:This uses the intArrayFromString function but Emscripten also have the stringToUTF8, see here
so any chance this will get fixed?