Tony Germano
b08de525f3
Set MozillaSuiteTest language version explicitly to 1.8
...
Several tests failed after changing the ShellContextFactory default language version to ES6.
2024-09-16 20:40:11 -04:00
Tony Germano
06d5f67ca7
Update Shell to use Context.VERSION_ES6 by default
...
resolves https://github.com/mozilla/rhino/issues/1279
2024-09-16 20:40:11 -04:00
Paul Bakker
f8a0a82fa8
Update test22 suite + include resizable-arraybuffer in unsuported
...
feature list
2024-09-14 17:55:16 -04:00
Satish Srinivasan
83ee610e49
FIX: address style comment
2024-09-14 17:44:40 -04:00
satish.srinivasan
6c3ac35a0f
FIX: Evaluation of ??
2024-09-14 17:44:40 -04:00
dependabot[bot]
4365ddcdd1
Bump actions/setup-java from 4.2.1 to 4.3.0
...
Bumps [actions/setup-java](https://github.com/actions/setup-java ) from 4.2.1 to 4.3.0.
- [Release notes](https://github.com/actions/setup-java/releases )
- [Commits](99b8673ff6...2dfa2011c5
)
---
updated-dependencies:
- dependency-name: actions/setup-java
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2024-09-14 17:31:51 -04:00
Cam Walter
44532ccc9e
NativeError: Throw error if no arguments are passed to AggregateError
2024-09-12 02:15:21 -04:00
Cam Walter
ffdf2313f1
Implement ES2021 Promise.any
2024-09-12 02:15:21 -04:00
satish.srinivasan
5c8707faa0
FIX: test with all opt levels
2024-09-11 01:35:02 -04:00
satish.srinivasan
d176c57762
FEAT: Implement `??`
...
Co-authored-by: Greg Caban <nabacg@gmail.com>
2024-09-11 01:35:02 -04:00
Greg Brail
19eabd3b0a
Continue to fix publishing:
...
* Support publishing to GitHub Packages
* Don't worry about snapshot publishing to Maven because they don't any
more
* Publish a snapshot every Saturday morning
2024-09-08 20:51:57 -04:00
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