301 Commits

Author SHA1 Message Date
Fabrice Bellard
a8b2d7c2b2 added Float16Array (bnoordhuis) - optimized float16 conversion functions 2025-05-05 19:12:32 +02:00
Fabrice Bellard
c95b024d3e added RegExp.escape (bnoordhuis) 2025-05-05 16:46:21 +02:00
Fabrice Bellard
0a6160d7b3 avoid relying on 'FILE *' in JS_PrintValue() API 2025-05-05 15:59:04 +02:00
Fabrice Bellard
11d076fac6 added get_array_el3 opcode - removed to_propkey2 opcode 2025-04-30 14:12:10 +02:00
Fabrice Bellard
703de06c43 fixed use of JS_DumpValue() 2025-04-30 14:09:31 +02:00
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
30fe3de91d Object.prototype has an immutable prototype 2025-04-29 19:03:36 +02:00
Fabrice Bellard
53327c2580 simplified uncatchable exception handling 2025-04-29 18:48:58 +02:00
Fabrice Bellard
23e2dc9c39 handle strings as module import and export names 2025-04-29 14:54:57 +02:00
Fabrice Bellard
3fbea36863 update tests 2025-04-28 16:37:51 +02:00
Fabrice Bellard
9bb1d7252b fixed operation order in js_obj_to_desc() 2025-04-28 16:33:14 +02:00
Fabrice Bellard
2d4e1cc20c fixed the delete operator with global variables 2025-04-28 16:32:23 +02:00
Fabrice Bellard
894ce9de1c fixed js_std_await() so that it behaves the same way as js_std_loop() (#402) 2025-04-28 16:28:01 +02:00
Fabrice Bellard
19abf1888d new release 2025-04-26 12:30:26 +02:00
Fabrice Bellard
1b13fa6450 added more C callbacks for exotic objects (#324) 2025-04-26 12:25:42 +02:00
Fabrice Bellard
7645ce5f63 more precise error location reporting 2025-04-26 12:25:00 +02:00
bellard
330625486f
Merge pull request #393 from nickva/more-ci-targets-and-windows-fixes
More CI tragets: Linux 32bit, Windows and Cosmopolitan
2025-04-22 19:18:16 +02:00
Fabrice Bellard
8e9e8e86c5 update tests 2025-04-22 19:16:19 +02:00
Fabrice Bellard
87cf1b0567 run-test262: added $262.gc() 2025-04-22 19:10:47 +02:00
Fabrice Bellard
3bffe67e6b fixed TypedArray.prototype.slice() when the buffers overlap 2025-04-22 19:07:47 +02:00
Fabrice Bellard
08a28c0cc3 fixed TypedArray.prototype.with with detached ArrayBuffer 2025-04-22 19:05:36 +02:00
Fabrice Bellard
a0a760f74f fixed GeneratorFunction prototype 2025-04-22 19:03:18 +02:00
Fabrice Bellard
b32cccb5fe fixed RegExp.prototype[Symbol.split] 2025-04-22 19:01:43 +02:00
Fabrice Bellard
1e958abcd8 fixed operation order in Object.prototype.propertyIsEnumerable() 2025-04-22 18:59:21 +02:00
Fabrice Bellard
5afd0eb37b fix property ordering in the object returned by RegExp.prototype.exec() 2025-04-22 18:56:59 +02:00
Fabrice Bellard
5e71d148f2 setters cannot have rest arguments 2025-04-22 18:53:48 +02:00
Fabrice Bellard
99a855f2c7 future reserved keywords are forbidden in function name and arguments when the function body is in strict mode 2025-04-22 18:51:54 +02:00
Nick Vatamaniuc
c0958ee2d0
More CI tragets: Linux 32bit, LTO, Windows and Cosmopolitan
Atomics support in Windows requires libwinpthread*.dll at runtime. One
way to get it is to install it with MinGW package, and copy alongside
the executable.

Update test Makefile targets for windows executables.

Allow running tests with Wine: `make WINE=wine CONFIG_WIN3=y
...`. That's useful when Wine binfmt support cannot be installed such
as on the CI hosts.

Add PPC64LE architecture and try to fix flaky multi-arch CI in gcc:
https://github.com/tonistiigi/binfmt/issues/215
2025-04-22 10:48:01 -04:00
Fabrice Bellard
e5e724829a added staging test262 tests 2025-04-21 16:23:42 +02:00
Fabrice Bellard
fbf7d8a205 fixed detached TypedArray handling in Atomics operations 2025-04-21 16:14:00 +02:00
Fabrice Bellard
334aa18013 fixed iterator close in Map/Set constructor 2025-04-21 16:12:56 +02:00
Fabrice Bellard
dbbca3dbf3 dtoa fix for minus zero 2025-04-21 15:33:47 +02:00
Fabrice Bellard
37cde16ba2 fixed build_arg_list() 2025-04-21 14:13:49 +02:00
Fabrice Bellard
e1f6dfe61a fixed checks in Proxy defineProperty 2025-04-21 14:00:32 +02:00
Fabrice Bellard
e7264d6f94 fixed Array.from() and TypedArray.from() 2025-04-21 12:39:18 +02:00
Fabrice Bellard
000db3aab3 the %TypedArray% Intrinsic Object should be a constructor 2025-04-21 11:52:42 +02:00
Fabrice Bellard
db3d3f09cd fixed memory leak in String constructor 2025-04-16 17:16:10 +02:00
Fabrice Bellard
b67c41689e fixed Proxy getOwnPropertyDescriptor with getters and setters 2025-04-16 16:51:34 +02:00
Fabrice Bellard
82d86b11d2 removed atom leak introduced in commit 83530ac9 2025-04-16 16:46:41 +02:00
Fabrice Bellard
f2b0723a9b added 'at' in Array.prototype[Symbol.unscopables] 2025-04-16 15:10:38 +02:00
Fabrice Bellard
0c5d59f6a9 optimized and fixed JS_AtomIsNumericIndex1(): 'NaN' is also a number 2025-04-16 15:04:57 +02:00
Fabrice Bellard
3b04c58628 fixed 'with' access by adding HasPropery() calls - removed unused 'with_get_ref_undef' opcode 2025-04-16 14:48:12 +02:00
Fabrice Bellard
83530ac9a7 fixed destructuring operation order when defining variables - optimized more cases of variable definition in destructuring 2025-04-16 14:23:54 +02:00
Fabrice Bellard
1d5e7cf300 fixed destructuring parsing: do it only in assignment expressions 2025-04-16 14:14:21 +02:00
Fabrice Bellard
5449fd42d6 more ToPropertyKey ordering changes 2025-04-15 11:26:53 +02:00
Fabrice Bellard
8f99de5b7f spec update: ToPropertyKey() is now done after the evaluation of the expression in assignments 2025-04-15 10:50:59 +02:00
Fabrice Bellard
8bb41b20dd enabled os.Worker on Windows (bnoordhuis) 2025-04-14 19:13:57 +02:00
bellard
bff55250c4
Merge pull request #400 from renatahodovan/fix-regexp
Define lre_check_timeout in fuzz_regexp
2025-04-14 17:54:18 +02:00
Renata Hodovan
f5788c7b67 Define lre_check_timeout in fuzz_regexp
Since #25aaa77, lre_check_timeout must be defined by the user. The
patch adds this definition to the regexp fuzzer.
2025-04-14 15:56:15 +02:00
Fabrice Bellard
ecfef7174d String.prototype.localeCompare is added in JS_AddIntrinsicStringNormalize() as it requires unicode normalization 2025-04-14 15:14:49 +02:00