Commit 5fb6959
committed
com.livecode.engine: Convert types for result of
The engine module's `send` and `execute script` statements were
failing to correctly perform type conversion of their results,
potentially leaking `MCNameRef`s into LCB script.
This patch adds a `MCEngineEvalScriptResult()` handler that does this
correctly. A better long-term fix would be to make sure LCB can cope
with `MCNameRef`s correctly and transparently through its typesystem.send & execute script
1 parent 9c21918 commit 5fb6959
4 files changed
Lines changed: 73 additions & 9 deletions
File tree
- engine/src
- tests
- lcs/core/engine
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
120 | 120 | | |
121 | 121 | | |
122 | 122 | | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
123 | 142 | | |
124 | 143 | | |
125 | 144 | | |
| |||
444 | 463 | | |
445 | 464 | | |
446 | 465 | | |
447 | | - | |
448 | 466 | | |
449 | | - | |
450 | 467 | | |
451 | 468 | | |
452 | 469 | | |
| |||
468 | 485 | | |
469 | 486 | | |
470 | 487 | | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | 488 | | |
475 | 489 | | |
476 | | - | |
| 490 | + | |
477 | 491 | | |
478 | 492 | | |
479 | 493 | | |
| |||
569 | 583 | | |
570 | 584 | | |
571 | 585 | | |
572 | | - | |
573 | | - | |
| 586 | + | |
| 587 | + | |
| 588 | + | |
574 | 589 | | |
575 | 590 | | |
576 | 591 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
111 | 111 | | |
112 | 112 | | |
113 | 113 | | |
114 | | - | |
| 114 | + | |
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
118 | 118 | | |
119 | 119 | | |
| 120 | + | |
| 121 | + | |
120 | 122 | | |
121 | 123 | | |
122 | 124 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
22 | 28 | | |
23 | 29 | | |
24 | 30 | | |
| |||
45 | 51 | | |
46 | 52 | | |
47 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
0 commit comments