Fabrice Bellard
be06b3e92b
added JS_PrintValue() and use it in console.log(), print() and the REPL ( #256 )
2025-04-30 13:40:15 +02:00
Fabrice Bellard
53327c2580
simplified uncatchable exception handling
2025-04-29 18:48:58 +02:00
Fabrice Bellard
1b13fa6450
added more C callbacks for exotic objects ( #324 )
2025-04-26 12:25:42 +02:00
Fabrice Bellard
67b48ae4e6
- removed the 'use strip' extension
...
- removed the JS_EVAL_FLAG_STRIP eval flag and replaced it with JS_SetStripInfo() which has simpler semantics.
- qjs: added the '-s' and '--strip-source' options
- qjsc: added the '-s' and '--keep-source' options
2025-04-12 12:14:37 +02:00
Fabrice Bellard
c505ac0f39
fixed JS_IsString() with ropes
2025-04-10 11:51:41 +02:00
Fabrice Bellard
00e6f29b17
added JS_GetAnyOpaque() (oleavr)
2025-04-07 18:45:11 +02:00
Fabrice Bellard
ec83bd2098
qjs: allow SI suffixes in memory sizes - set default stack size to 1 MB
2025-04-07 11:47:57 +02:00
Fabrice Bellard
8b5b1277ad
reworked weak references so that cycles are (hopefully) correctly handled - added Symbol as WeakMap key, WeakRef and FinalizationRegistry
2025-04-05 12:49:29 +02:00
Fabrice Bellard
29630bcea6
added missing header
2025-03-25 16:49:41 +01:00
Fabrice Bellard
6cc02b4421
more use of js_new_string8 - inlined JS_NewString() (initial patch by Charlie Gordon)
2025-03-25 16:33:47 +01:00
Fabrice Bellard
156d981afe
added string ropes for faster concatenation of long strings (issue #67 )
2025-03-25 16:01:40 +01:00
Fabrice Bellard
6d6893bfa3
fixed BigInt hashing - removed -fno-bigint in qjsc and JS_AddIntrinsicBigInt() (BigInt is now considered as a base object)
2025-03-19 12:33:54 +01:00
Fabrice Bellard
6de88859e7
more bignum cleanup
2025-03-19 11:43:31 +01:00
Fabrice Bellard
61e8b94428
removed bignum support and qjscalc - added optimized BigInt implementation
2025-03-18 18:29:10 +01:00
Kasper Isager Dalsgarð
f3f2f42717
Add JS_StrictEq()
, JS_SameValue()
, and JS_SameValueZero()
( #264 )
...
* add `JS_StrictEq()`, `JS_SameValue()`, and `JS_SameValueZero()` all accepting `JSValueConst`
* make `js_strict_eq` accept `JSValueConst`, remove uses of this function internally and replace them with
`js_strict_eq2` instead.
2024-05-09 13:07:40 +02:00
Kasper Isager Dalsgarð
6f9d05fd2b
Expose JS_SetUncatchableError()
( #262 )
...
* Expose `JS_SetUncatchableError()`
* Remove unnecessary `JS_SetUncatchableError` declaration
2024-05-09 12:45:47 +02:00
Kasper Isager Dalsgarð
db9dbd0a2b
Add JS_HasException()
( #265 )
2024-05-08 23:19:15 +02:00
Dmitry Volyntsev
6c43013140
Add JS_NewTypedArray()
( #272 )
2024-05-08 23:17:00 +02:00
Charlie Gordon
65ecb0b0d6
Improve Date.parse, small fixes
...
- add `minimum_length` to enforce array length validation
- add `JS_NewDate()` API
- add `[Symbol.toStringTag]` property in the global object
- simplify `string_get_milliseconds`
- support more timezone abbrevs using `string_get_tzabbr` and array
2024-03-22 00:47:17 +01:00
Charlie Gordon
06c100c9bf
Prevent UB on memcpy and floating point conversions
...
- add `memcpy_no_ub` that accepts null pointers for 0 count
- prevent 0 length allocation in `js_worker_postMessage`
- use safer test for `int` value in `JS_NewFloat64`,
`JS_ToArrayLengthFree` and `js_typed_array_indexOf`
2024-03-03 14:05:40 +01:00
Tyler Rockwood
b91a2aec67
Add C API function JS_GetClassID()
...
If you want to extend a built-in class you need it's class ID and there
is no robust way to get that without this accessor.
* add JS_INVALID_CLASS_ID constant for invalid class ID.
Signed-off-by: Tyler Rockwood <rockwood@redpanda.com>
2024-02-21 15:33:37 +01:00
Charlie Gordon
37bd4ae62d
Strip trailing spaces
2024-02-10 16:19:17 +01:00
Fabrice Bellard
c6cc6a9a5e
export JS_GetModuleNamespace (github issue #34 )
2024-01-27 13:27:32 +01:00
Fabrice Bellard
e44b793e38
allow 'await' in the REPL and added os.sleepAsync()
2024-01-02 16:09:30 +01:00
Fabrice Bellard
6e4931c4ad
top-level-await support - follow the spec in the implementation of the module linking and evaluation to avoid errors with cycling module dependencies
2023-12-27 17:10:47 +01:00
Fabrice Bellard
58f374ef42
reworked set property and fixed corner cases of typed array set property
2023-12-09 12:30:31 +01:00
bellard
b5e62895c6
2021-03-27 release
2021-03-27 11:17:31 +01:00
bellard
b1f67dfc1a
2020-11-08 release
2020-11-08 14:30:56 +01:00
bellard
7c312df422
2020-09-06 release
2020-09-06 19:10:15 +02:00
bellard
8900766099
2020-07-05 release
2020-09-06 19:07:30 +02:00
bellard
1722758717
2020-04-12 release
2020-09-06 19:04:20 +02:00
bellard
383e2b06c8
2020-03-16 release
2020-09-06 19:02:03 +02:00
bellard
0e8fffd4de
2020-01-19 release
2020-09-06 18:57:11 +02:00
bellard
91459fb672
2020-01-05 release
2020-09-06 18:53:08 +02:00