Noemi Praml
836f46c3d4
FIX: publishing to mvn
2024-09-08 20:51:57 -04:00
dependabot[bot]
50400dfbe0
Bump actions/upload-artifact from 4.3.6 to 4.4.0
...
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact ) from 4.3.6 to 4.4.0.
- [Release notes](https://github.com/actions/upload-artifact/releases )
- [Commits](834a144ee9...50769540e7
)
---
updated-dependencies:
- dependency-name: actions/upload-artifact
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-09-08 17:18:13 -04:00
Greg Brail
4a8779ebe0
Remove unneeded action in publishing script
2024-09-08 13:20:46 -07:00
Greg Brail
08f3159c89
Fix publishing scripts
2024-09-08 16:13:51 -04:00
Cam Walter
3577b83557
Set initial line number to -1 and fix StackTraceTests
...
This fixes https://github.com/mozilla/rhino/issues/477
2024-09-04 22:10:23 -04:00
andrea.bergia
1fb4321481
Implement logical assigment operators `||=` and `&&=`
2024-09-04 21:49:44 -04:00
Grzegorz Caban
82416a1713
refactoring tests to use Utils.runWithAllOptimizationLevels
2024-08-31 10:22:48 -07:00
Grzegorz Caban
cc353244c2
updating outdated comment on defineProperty
2024-08-31 10:22:48 -07:00
nabacg
4eb68d560c
removing no longer used ensureLambdaAccessorSlot overload
2024-08-31 10:22:48 -07:00
nabacg
294096feec
spotlessApply
2024-08-31 10:22:48 -07:00
nabacg
76f5e5eef5
Bringing LambdaAccessorSlot more in line with AccessSlot, making sure PropertyDescriptor sets writable, enumerable and configurable attributes, plus calling validation on those when creating new LambdaAccessorSlot properties
2024-08-31 10:22:48 -07:00
nabacg
57ba3cb244
OwnerAwareLambdaSlot -> LambdaAccessorSlot rename, plus making sure getPropertyDescriptor only creates single instance of get/set LambdaFunctions, instead of instance per call
2024-08-31 10:22:48 -07:00
nabacg
1bae924480
getValue to return null, not Undefined
2024-08-31 10:22:48 -07:00
nabacg
a736276482
re-formating with spotlessApply
2024-08-31 10:22:48 -07:00
Grzegorz Caban
1bfad4824b
Update tests/src/test/java/org/mozilla/javascript/tests/OwnerAwareLambdaSlotTest.java
...
Co-authored-by: Roland Praml <roland.praml@foconis.de>
2024-08-31 10:22:48 -07:00
nabacg
6e4fe32c59
adding new type of Slot called OwnerAwareLambdaSlot, that allows defining getter / setter properties using Lambda functions that accept owner object ('this') as one of parameters, thus allowing to implement properties that require access to instance fields etc.
2024-08-31 10:22:48 -07:00
Cam Walter
f63941c7e4
Update documentation link for GroupBy
2024-08-31 10:15:34 -07:00
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