Thomas Weber
8dee0fdac8
Add a test for preciseProjectTimer drift
2020-11-26 10:58:35 -06:00
Thomas Weber
cb165cc024
preciseProjectTimer startTime should always match preciseTimer's startTime
...
Letting them each have their own start time can lead to slight drift where preciseProjectTimer returns a smaller number than projectTimer.
Fixes https://scratch.mit.edu/projects/453118719
2020-11-26 10:46:16 -06:00
Thomas Weber
dc52b58019
Implement thread glowing ( #35 )
2020-11-24 12:06:47 -06:00
Thomas Weber
2f577e978a
Alphabetize
2020-11-24 11:33:26 -06:00
Thomas Weber
ea21a512f7
Add looks_switchbackdroptoandwait to compat layer
2020-11-23 14:33:44 -06:00
Thomas Weber
7c8ff1ceca
Disable some eslint rules
2020-11-21 17:51:42 -06:00
Thomas Weber
c90848ea3d
update TODOs
2020-11-21 16:25:40 -06:00
Thomas Weber
28be8c9887
js: sanitize shouldn't throw if argument is not string
2020-11-21 16:22:06 -06:00
Thomas Weber
711e899795
Include opcode in edge-activated hat error message
2020-11-20 21:14:25 -06:00
Thomas Weber
5b3d33dfc6
Add control_get_counter to compat blocks
2020-11-20 21:13:22 -06:00
Thomas Weber
11040eae0b
ir: Different error message when attempting to compile inputs as stacked blocks
2020-11-20 21:04:16 -06:00
Thomas Weber
6e9622ec4c
ir: Refactor descendInput
2020-11-20 21:03:57 -06:00
Thomas Weber
084418bbe5
is compiled? shouldn't return true if compiler is explicitly disabled
2020-11-18 17:43:25 -06:00
Thomas Weber
60afe75aa8
Cleanup how execute test catches compiler errors
2020-11-18 16:29:00 -06:00
Thomas Weber
3ec9f75bea
Include target in COMPILE_ERROR
2020-11-18 16:24:43 -06:00
Thomas Weber
ed162660f0
Add COMPILE_ERROR event
2020-11-18 16:22:28 -06:00
Thomas Weber
773bf55ca5
tw-loose-json -> tw-extended-json
...
This is less about being "loose" and more about being "extended"
This parser is no looser than JSON.parse, but it supports more literals
2020-11-17 14:39:23 -06:00
Thomas Weber
0d6a033c6d
Dirty hack to fix projects that use literal Infinity
...
https://scratch.mit.edu/projects/10590338/
2020-11-17 14:29:31 -06:00
Thomas Weber
d3e4e144d7
emit-fast -> tw-emit-fast
2020-11-17 13:45:16 -06:00
Thomas Weber
ad817fff6b
populateProcedureCache should not overwrite entries
...
Fixes https://scratch.mit.edu/projects/387608267/
2020-11-17 13:00:17 -06:00
Thomas Weber
4bd5779835
is compiled? should return true even if the script couldn't be compiled
2020-11-16 00:30:47 -06:00
Thomas Weber
5f3571e9a8
Remove duplicate entries
2020-11-15 22:42:42 -06:00
Thomas Weber
09d705b82d
Merge branch 'develop' of https://github.com/llk/scratch-vm into develop
2020-11-11 09:23:19 -06:00
Chris Willis-Ford
d3585a3c51
Merge pull request #2366 from LLK/dependabot/npm_and_yarn/tar-4.4.13
...
[Security] Bump tar from 4.4.1 to 4.4.13
2020-11-10 15:12:07 -08:00
DD Liu
3e65526ed8
Merge pull request #2632 from fsih/useCdm
...
Pass on event type from CDM
2020-11-09 20:00:24 -05:00
dependabot-preview[bot]
eb66a95ecb
[Security] Bump tar from 4.4.1 to 4.4.13
...
Bumps [tar](https://github.com/npm/node-tar ) from 4.4.1 to 4.4.13. **This update includes security fixes.**
- [Release notes](https://github.com/npm/node-tar/releases )
- [Changelog](https://github.com/npm/node-tar/blob/master/CHANGELOG.md )
- [Commits](https://github.com/npm/node-tar/compare/v4.4.1...v4.4.13 )
Signed-off-by: dependabot-preview[bot] <support@dependabot.com >
2020-11-09 20:04:30 +00:00
dependabot-preview[bot]
9d989a9346
Merge pull request #2594 from LLK/dependabot/npm_and_yarn/js-yaml-3.14.0
2020-11-09 19:11:47 +00:00
dependabot-preview[bot]
cd79590af0
Merge pull request #2601 from LLK/dependabot/npm_and_yarn/bl-1.2.3
2020-11-09 19:05:36 +00:00
dependabot-preview[bot]
277c0b6a82
Merge pull request #2537 from LLK/dependabot/npm_and_yarn/elliptic-6.5.3
2020-11-09 19:02:58 +00:00
Colby Gutierrez-Kraybill
f2a5900a3d
Merge pull request #2534 from LLK/dependabot/npm_and_yarn/is-my-json-valid-2.20.5
...
[Security] Bump is-my-json-valid from 2.16.0 to 2.20.5
2020-11-09 13:57:19 -05:00
Colby Gutierrez-Kraybill
28522980f1
Merge pull request #2639 from LLK/dependabot/npm_and_yarn/scratch-svg-renderer-0.2.0-prerelease.20201019174008
...
[Security] Bump scratch-svg-renderer from 0.2.0-prerelease.20200205003400 to 0.2.0-prerelease.20201019174008
2020-11-09 13:46:05 -05:00
Thomas Weber
fff2923aa6
ir+js: Break up sensing.current
2020-11-05 15:31:13 -06:00
Thomas Weber
86cd92d1ee
js: procedure.call should reset variable inputs
...
https://scratch.mit.edu/projects/430811055/
2020-11-04 19:07:16 -06:00
Thomas Weber
f62d47da1e
Clarify tw-* test licensing
2020-11-04 19:06:17 -06:00
Thomas Weber
cafbe65353
Revert "scratch-render should point to the TurboWarp fork"
...
This reverts commit 38e9bd78cc .
2020-10-31 14:46:51 -05:00
Thomas Weber
38e9bd78cc
scratch-render should point to the TurboWarp fork
2020-10-31 14:43:16 -05:00
Thomas Weber
9799d49cf8
Clarify what stop() does
2020-10-31 14:14:05 -05:00
Thomas Weber
af63a68aab
Explicitly emit MONITORS_UPDATE in Runtime.dispose
2020-10-31 14:12:46 -05:00
Thomas Weber
a428ca93c5
Add Runtime/Virtualmachine.stop()
2020-10-31 13:29:18 -05:00
Thomas Weber
900a0a4722
js: op.ln and op.log are NaN-able
2020-10-31 01:26:20 -05:00
Thomas Weber
66fd45fe21
js: op.mod is NaN-able
2020-10-31 01:15:23 -05:00
Thomas Weber
3f80c7b868
Change size should not round initial size
...
Test based on a project by https://scratch.mit.edu/users/_Fingerprint_/
2020-10-28 21:09:51 -05:00
Thomas Weber
1cac077ce6
Update target.size even if there is no renderer
2020-10-28 21:03:05 -05:00
Thomas Weber
00b5b2cfce
Fix some eslint errors
2020-10-28 19:46:37 -05:00
Thomas Weber
1f7f1f500e
Add safe procedure argument casting test
...
Based on https://scratch.mit.edu/projects/441049810/
2020-10-26 21:22:01 -05:00
Thomas Weber
6ce2ecc05b
astgen -> irgen
...
The term AST results in confusion with the actual scratch-vm AST
2020-10-26 11:20:35 -05:00
Thomas Weber
847cf62e2b
Add test for multiple procedure arguments with same name
2020-10-26 11:18:48 -05:00
Thomas Weber
b7512f32f0
js: Error at compile-time if script unexpectedly tries to yield
2020-10-26 10:51:44 -05:00
Thomas Weber
fe2c3757e7
js: procedure arguments need to use asSafe
...
https://turbowarp.org/editor.html#441049810
2020-10-26 07:06:50 -05:00
Thomas Weber
db7564d83b
Revert "Precompile scripts once when project is loaded"
...
This reverts commit ba58765636 .
2020-10-24 18:14:49 -05:00