Граф коммитов

4350 Коммитов

Автор SHA1 Сообщение Дата
dependabot[bot] b555a87457 Bump gradle/actions from 3.1.0 to 4.0.1
Bumps [gradle/actions](https://github.com/gradle/actions) from 3.1.0 to 4.0.1.
- [Release notes](https://github.com/gradle/actions/releases)
- [Commits](417ae3ccd7...16bf8bc8fe)

---
updated-dependencies:
- dependency-name: gradle/actions
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-31 10:12:47 -07:00
Greg Brail dee1b3be69 Revert "make tests more robust"
This reverts commit c0936cae9b.
2024-08-31 10:12:15 -07:00
Tony Germano 650ec2991d Use UTF-8 decoding for java source files
This is the default on Linux and Mac, but not on Windows. This should standardize across platforms.
2024-08-29 18:16:48 -07:00
Cam Walter 4e6523b61b Implement ES2024 `groupBy` 2024-08-27 22:03:36 -07:00
Ronald Brill c0936cae9b make tests more robust 2024-08-27 21:39:34 -07:00
Ronald Brill 0cbdbc047b force LF as newLine character to let out test suite pass on windows also 2024-08-24 14:57:59 -07:00
dependabot[bot] 5c3d055991 Bump actions/upload-artifact from 4.3.3 to 4.3.6
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.3.3 to 4.3.6.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](65462800fd...834a144ee9)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-24 11:18:39 -07:00
雨夏 e26124a53f Add message translation to Simplified Chinese.
Add Messages_zh_CN.properties
2024-08-24 11:07:33 -07:00
dependabot[bot] ad0c31f39d Bump com.tngtech.archunit:archunit-junit4 from 1.2.0 to 1.3.0
Bumps [com.tngtech.archunit:archunit-junit4](https://github.com/TNG/ArchUnit) from 1.2.0 to 1.3.0.
- [Release notes](https://github.com/TNG/ArchUnit/releases)
- [Commits](https://github.com/TNG/ArchUnit/compare/v1.2.0...v1.3.0)

---
updated-dependencies:
- dependency-name: com.tngtech.archunit:archunit-junit4
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-24 15:44:42 +02:00
andrea.bergia bd4c086e72 Silenced all warnings 2024-08-23 17:14:01 -07:00
Roland Praml 9451bc7135 Fix javadoc generation 2024-08-23 17:12:49 -07:00
Greg Brail 2fdc1ef27c Add a benchmark to measure Rhino startup time
I'm a bit worried about changes I'm making with lambdas and how that
will impact how long it will take Rhino to initialize all the standard
objects, so let's create a microbenchmark for that.
2024-08-23 17:11:13 -07:00
Andrea Bergia 8c4b663456
Fixed a bug with interpreter peeling introduced in #1510 (#1578)
Lack of support for all the varieties of lambda function in Rhino in the new "interpreter peeling" code introduced to make continuations work better was holding back additional conversions to lambda functions.
2024-08-23 15:58:37 -07:00
Cam Walter 7e4fa18e09 NativeError: Add ES2022 `cause`
This fixes a couple other test cases involving toString() as well.
2024-08-22 22:22:00 -07:00
Andrea Bergia 86a2d60707
Implement ES2023 copy methods on Array and TypedArray (#1569)
Add new methods to Array:

* toReversed
* toSorted
* toSpliced
* with

and add the same methods to TypedArray, except for "toSpliced".
2024-08-22 18:48:31 -07:00
Greg Brail d0d8d2d6e2 Add an SLF4j provider
The new test that uses "archunit" needs this so that it's logs will
print.
2024-08-22 18:38:13 -07:00
Ronald Brill cd9aae79a7 make sure to use only the RegExpProxy interface instead of some hardcoded instanceof 2024-08-22 18:24:54 -07:00
Greg Brail c743a3fd0d Make interpreted mode consistently return integers too 2024-08-22 18:23:32 -07:00
Greg Brail 8b7b580cb3 Aggressively try to use Integer objects
When doing math, try to do integer arithmetic when the arguments passed
are Integer objects, rather than always falling back to floating-point
math. This speeds up some benchmarks that rely heavily on integer
arithmetic.
2024-08-22 18:23:32 -07:00
dependabot[bot] cbb0e2f170 Bump github/codeql-action from 3.26.0 to 3.26.2
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.26.0 to 3.26.2.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](eb055d739a...429e197704)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-18 11:32:23 -07:00
Greg Brail ec45a62caa Ensure that generator functions pass parameters properly
Generators use a different calling convention and require "activation"
in order to pick up the right parameters. This wasn't being triggered
unless the generator function had a "yield" statement, resulting in some
very strange results. Make sure that it always happens for ES6
generators.
2024-08-16 19:21:59 -07:00
Greg Brail 04d54698af Remove more obsolete classes: ObjToIntMap and UintMap
These classes can be easily replaced by HashMap and sometimes HashSet
without a negative performance impact.
2024-08-15 18:28:40 -07:00
Andrea Bergia 03a94c3a69 Add Array.findLast and findLastIndex from ES2023
Also implement these methods for the typed arrays variants.
2024-08-15 18:25:06 -07:00
Greg Brail f3c64ee29f Remove obsolete "ObjArray" class
Depending on context, replace this venerable class with either ArrayList
or ArrayDeque.
2024-08-13 19:03:18 -04:00
Greg Brail 0bd385de27 Rationalize benchmark setup and time units
* Make sure that all the benchmarks run using "gradle jmh"
* Make sure that each has a reasonable default time unit
* Add a way to change which benchmarks run via the command-line
* Add a README for the benchmarks
2024-08-12 18:29:13 -04:00
dependabot[bot] 7e37dad5f6 Bump github/codeql-action from 3.25.15 to 3.26.0
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.25.15 to 3.26.0.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](afb54ba388...eb055d739a)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-12 12:39:42 -04:00
Satish Srinivasan 93a893e49d FEAT: Implement Symbol.unscopables 2024-08-12 12:38:16 -04:00
tuchida 4a1e870a1b ref. #1074 Fixed error with yeild in ComputedPropertyName 2024-08-09 12:10:36 -04:00
tuchida 249323340b Remove OBJECT_IDS_COMPUTED_PROP
Also store Node of ComputedProperty in OBJECT_IDS_PROP
2024-08-09 12:10:36 -04:00
andrea.bergia 7d1f5b7e68 Fix problem with regex constructor
The spec says that we can create a new regex passing an existing one and
a different set of flags, but that does not work. This PR fixes it.
We also now pass a few more test262 cases.
2024-08-09 12:02:28 -04:00
Greg Brail fa4f147540 Add exclusion for a test that is too big for Jacoco 2024-08-07 21:35:02 -04:00
Paul Bakker 42589d40b3 Add /test22/tests/harness tests to test262SuiteTest 2024-08-07 21:02:47 -04:00
Paul Bakker ba8a40f267 Update test22 to a very recent version 2024-08-07 21:02:47 -04:00
petergrewsome e3f08763ee Update README.md 2024-08-07 20:54:26 -04:00
dependabot[bot] 418459aba9 Bump github/codeql-action from 3.24.9 to 3.25.15
Bumps [github/codeql-action](https://github.com/github/codeql-action) from 3.24.9 to 3.25.15.
- [Release notes](https://github.com/github/codeql-action/releases)
- [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md)
- [Commits](1b1aada464...afb54ba388)

---
updated-dependencies:
- dependency-name: github/codeql-action
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2024-08-07 20:53:46 -04:00
Ronald Brill 2f2cec0650 add an additional null check 2024-08-07 20:53:11 -04:00
Greg Brail cc302b4f8f Fix a compiler warning
Possible integer overflow.
2024-07-25 18:58:57 -07:00
andrea.bergia 01719fe3e4 Improved implementation of the various methods of typed array
We implement almost correctly
[TypedArraySpeciesCreate](https://tc39.es/ecma262/multipage/indexed-collections.html#typedarray-species-create)
from the spec now, which leads to passing more test262 cases passing.
2024-07-25 18:58:57 -07:00
andrea.bergia db11729072 Implement various missing methods in `TypedArray`
Since most methods were already implemented in `NativeArray`, I followed
this approach:
- when reasonable, I extracted the implementation in `NativeArray` and
  moved it to a new class `ArrayLikeAbstractOperations`;
- otherwise, I copy&pasted the code from `NativeArray` into
 `NativeTypedArrayView` and simplified it.
2024-07-25 18:58:57 -07:00
Attila Szegedi b845d14d75 Remove Icode_SWAP as it was unused 2024-07-25 19:55:59 -06:00
Greg Brail b7ece52d83 Streamline object operations through a better SlotMap interface
Implement a "compute" method which allows a bunch of the logic in
ScriptableObject work without as many slot map operations, especially
when changing slot instance types.

Also, get a particular check out of the slot map implementations that
has always bothered me and move it to ScriptableObject for better
encapsulation of language-specific behavior.
2024-07-22 15:24:20 -06:00
Greg Brail c0e17680d7 Fix a parenthesis warning from errorprone 2024-07-22 14:20:18 -07:00
Ronald Brill fe7b4e340e jdk 21 uses a nnbsp in front of 'PM' 2024-07-22 12:50:08 -07:00
Ronald Brill 3cfa4a00eb - use DateTimeFormatter instead of SimpleDateFormat
- Date.prototype.toLocaleString now handles locales argument
- make the formatter use Context.timezone instead of system default
- ES6: use FormatStyle.SHORT for the formatter to make it behave more like real browsers when Intl.DateTimeFormat is not supported
2024-07-22 12:50:08 -07:00
tuchida 7525f813d0 ref. #406 Only Array/Object of AstNode is valid as left side expression 2024-07-22 13:49:02 -06:00
tuchida fbcbb5a018 ref. #1187 Transform AstNode within Parser when called by IRFactory 2024-07-22 13:49:02 -06:00
Tony Germano dc08eb51eb Add Byte to list of java Numbers 2024-07-21 12:57:38 -06:00
tuchida 46fa711818 Revert "[DEBUG]Check for TypeError during parsing"
This reverts commit dea0e8d6f73fdf2d34e92ae93d6d037d35965fc9.
2024-07-21 11:39:48 -07:00
tuchida 4ff1feca77 ref. #989 Remove exception name in message 2024-07-21 11:39:48 -07:00
tuchida 64b397f35e [DEBUG]Check for TypeError during parsing 2024-07-21 11:39:34 -07:00