1801 Commits

Author SHA1 Message Date
99d2f0b8fc Update .githubCI.yml 2025-11-19 14:18:54 -08:00
a1112587db try v4 of artifact actions 2025-11-19 14:17:58 -08:00
e3fc56376c Merge pull request #1194 from Mai-Lapyst/add-methodlimit-checks
Add check for method limit; closes #1193
2025-11-19 14:15:38 -08:00
77aeb12ab8 tidy up warning
warning: incompatible pointer types passing 'ObjModule *' to parameter of type 'Obj *'
2025-03-11 17:06:45 -07:00
415f7b24ac Merge pull request #1195 from rune-scape/gray-fn-module
Mark a functions module as reachable for the GC
2025-03-10 17:46:00 -07:00
9bafddadd6 Update wren_value.c 2025-03-10 17:43:44 -07:00
59a834e97c Gray the module that functions belong to 2025-03-05 19:31:38 -08:00
7c3985f8a0 Add check for method limit; closes #1193 2025-02-25 01:03:45 +01:00
bd07122f92 Fix a typo (#1192) 2025-02-16 10:54:34 -08:00
c2a75f1eaf docs: add link to cli in mobile view (#1107) 2022-09-28 18:32:10 -07:00
5287f6cd2b Added an example of 'else if' to the docs (#1097)
* Added an example of else if to the docs

* Added an example of else if to the Control Flow section of the docs
2022-08-30 22:49:13 -07:00
4ffe2ed38b Fix formatting error (#1078)
Fixed error that caused `<stdio.h>` to disappear from C `#include` directive
2022-01-31 15:43:01 -08:00
77079f2f49 CI: artifacts 2021-11-14 01:00:19 -08:00
2adb220686 CI: add initial github actions 2021-11-14 00:50:43 -08:00
accfa598b3 Allow people to share links to the playground (#1046)
* Allow people to share links to the playground

We do that by encoding the code (compressed) in the URL.

The compression is the same used in the TypeScript playground:
e9d8f66f6b/packages/sandbox/src/compilerOptions.ts (L119-L120)
2021-08-09 17:41:00 -07:00
55e8807aba fix #1039 clarity in header comments 2021-08-09 17:24:47 -07:00
dd1e8a00db docs; values; add note about newline normalization in docs 2021-05-21 16:30:08 -07:00
3c43de7485 minor consistency fixes 2021-05-21 16:24:34 -07:00
59e496e26a Fix CRLF being significant inside of strings, now strings are normalized to \n only and the same output regardless of the file line endings (see #988)
https://github.com/wren-lang/wren/issues/988#issuecomment-842670624
2021-05-21 16:24:12 -07:00
d78f481079 wren_core.wren.inc backslash characters escaped (#1023) 2021-05-21 16:09:00 -07:00
9903ddf76b docs; string; clarify indexOf(_,_) to be clearer 2021-05-16 12:17:31 -07:00
f09ebf6acc fix attributes causing crash when GC is triggered by compiler init 2021-05-05 14:34:16 -07:00
7fb7f6430d minor 2021-05-05 14:29:39 -07:00
aca7c70079 docs; fix example with 'continue' (#1007) 2021-05-04 14:56:53 -07:00
eca90e29e9 Document the Meta class. (#977) 2021-04-16 11:12:32 -07:00
a346494922 Documents 'return from module'. (#976)
Fixes #974.
2021-04-16 11:09:28 -07:00
754d5a59e9 correct attributes example (#978) 2021-04-16 11:08:01 -07:00
8eb51d9327 doc: fix links from Object to values (#975)
Fix two broken links from the documentation for the Object class to the
page describing values.
2021-04-15 21:29:26 -07:00
22ff3b5549 update try to 0.4.0 2021-04-09 12:48:39 -07:00
e4b4df2e62 minor; remove redundant comment bit 2021-04-09 11:17:15 -07:00
46b06f0620 minor formatting fix 2021-04-08 22:22:34 -07:00
d650b60c25 0.4.0 release - fix links and formatting 2021-04-08 22:17:13 -07:00
30c9f1ee37 initial 0.4.0 blog post 2021-04-08 22:09:02 -07:00
4a18fc489f tests; maps; remove test that now asserts in debug
for now, as there doesn't seem to be a way to test for that , it fails CI
0.4.0
2021-04-08 21:46:31 -07:00
d763c72e3d fix use of NULL_VAL, also invalid when nan tagging is disabled 2021-04-08 21:40:06 -07:00
34b01226a4 fix use of UNDEFINED_VAL which is invalid when nan tagging is disabled 2021-04-08 21:34:27 -07:00
a4ae905384 Introduce Attributes (#962)
* introduce Attributes for classes and methods
2021-04-08 21:30:09 -07:00
5244a9d001 Add an additional escape sequence \e. (#963) 2021-04-08 10:16:24 -07:00
9e86b0d26a clarify the list of escapes to show the whole list 2021-04-08 10:11:01 -07:00
e260b467c4 made wren version number accessable via function (#958) 2021-04-08 09:33:22 -07:00
1307bdfb64 value: Rename validateKeyTypeto wrenMapIsValidKey. (#965) 2021-04-08 09:10:55 -07:00
06b71897b0 Surface error messages for map key values in the API with asserts
closes https://github.com/wren-lang/wren/pull/921
2021-04-07 23:08:31 -07:00
059e407ed3 wren/compiler: Allow multiline empty parameter lists and calls. (#925) 2021-04-07 22:58:46 -07:00
fd1d095588 Add preamble for Timer module (#920)
Opening remarks also needed here.
2021-04-07 22:56:51 -07:00
7a131a67e6 Add preamble for Scheduler module (#919)
We need some opening remarks here to get rid of the TODO.
2021-04-07 22:56:29 -07:00
e4052a25d7 wren/vm: Add wrenIsFalsyValue. (#866) 2021-04-07 22:54:49 -07:00
041f1bab8d Fix returning from constructors (#845)
* Fix returning from constructors

 1. Do not allow returning with a value
 2. Return the instance, correctly, even when the user returned explicitly

* revise error message for consistency, revise implementation details a bit, fix extra args to finishBody

* clarify tests a bit

* document constructor return

Co-authored-by: ruby0x1 <ruby0x1@pm.me>
2021-04-07 22:53:05 -07:00
68f5c096d8 Disallow non-Num arguments in Num for min(_), max(_), clamp(_,_), pow(_) and atan(_) (#859)
* Disallow non-Num arguments in `Num.min(_)`, `Num.max(_)`, `Num.clamp(_,_)`

Previously this was an Undefined Behavior

* also validate args for pow, atan2, add tests, fix error messages

Co-authored-by: ruby0x1 <ruby0x1@pm.me>
2021-04-07 22:04:58 -07:00
4847b37789 minor cleanup 2021-04-07 21:56:19 -07:00
28da4b449c Add Num.[max/min]SafeInteger (#874) 2021-04-07 21:45:00 -07:00