Commit Graph

4892 Commits

Author SHA1 Message Date
Rick Waldron c5e8aa9ca2 Migrate test/harness/* away from dependence on $ERROR(). Close gh-742 2020-09-16 17:37:16 -04:00
Rick Waldron e662428fb4 Replace all "valid" occurences of $ERROR with Test262Error.thrower 2020-09-16 17:36:54 -04:00
Rick Waldron 8250b886b0 Create "Test262Error.thrower" as replacement for "$ERROR". Define $ERROR as Test262Error.thrower 2020-09-16 17:36:54 -04:00
Rick Waldron f94fc660cc Array#shift throws TypeError if this value's "length" property was defined with [[Writable]]: false. Fixes gh-2773 2020-09-15 16:35:11 -04:00
Rick Waldron 9fc299915d get and set in MethodDefinition must not be escaped. Fixes gh-2078 2020-09-15 16:34:36 -04:00
Rick Waldron 92a200b29f Attempting to set a value to a binding that no longer exists must throw a ReferenceError exception in strict mode code. Fixes gh-427 2020-09-15 16:33:59 -04:00
Rick Waldron 8a2bfb48d4 Delete invalid tests 2020-09-15 16:33:59 -04:00
Rick Waldron a92de6fa2d Generate tests 2020-09-15 11:09:52 -04:00
Rick Waldron cbfb7eb96a src/subclass-builtins/*.case: Add missing features 2020-09-15 11:09:52 -04:00
Yusuke Suzuki a7b9067fe1 Intl.NumberFormat + currency will throw an error if maximumFractionDigits is less than currencyDigits
In 12.1.1 SetNumberFormatDigitOptions step 12.d[1], mnfd (minimum fraction digits) becomes the same to currencyDigits (mxfdDefault in this case).
It is 2 for USD, 4 for CLF. So, if maximumFractionDigits is less than that, we should throw RangeError.

[1]: https://tc39.es/ecma402/#sec-setnfdigitoptions
2020-09-15 10:33:23 -04:00
Rick Waldron 485cb0b1c9 Coverage: check instanceof on instances of built-in subclasses. Fixes gh-659 2020-09-14 13:40:33 -04:00
Rick Waldron 6e6516a558 Switch: lexical declarations inner scope. Fixes gh-422 2020-09-14 13:39:57 -04:00
Rick Waldron 58559ddddd Coverage: Number.prototype.toPrecision throws a RangeError if precision cannot be coerced to a number in range. Fixes gh-2765 2020-09-14 13:36:22 -04:00
Rick Waldron f99bec89b7 Miscellaneous: cleanup very old delete operator tests. 2020-09-14 13:35:54 -04:00
Rick Waldron 3b1f4f7e1b Coverage: delete undefined.property. Fixes gh-2763 2020-09-14 13:35:54 -04:00
Rick Waldron 21cdcb85d1 Generate tests 2020-09-14 13:35:13 -04:00
Rick Waldron dd80cd2ea9 Fixup Class Elements: make templates from custom V8 tests 2020-09-14 13:35:13 -04:00
Rick Waldron 5c753769e6 Fixup: remove duplicate tests 2020-09-14 13:35:13 -04:00
Rick Waldron 7f518f7d38 Fixup Map: add proper esid 2020-09-14 13:35:13 -04:00
Rick Waldron 873a7241c3 Fixup Intl.* this-value tests (delete dups, add proper esid) 2020-09-14 13:35:13 -04:00
Frank Tang ab3a86d9b3 Move tests from
https://source.chromium.org/chromium/chromium/src/+/master:v8/test/test262/local-tests/
2020-09-14 13:35:13 -04:00
Rick Waldron 9e88ec1354 Contributing: add list of links to implementation bug trackers. Fixes gh-2121 2020-09-14 13:29:08 -04:00
Rick Waldron 3429f714d9 Acceptable Tests, Unacceptable Tests 2020-09-14 13:26:11 -04:00
Rick Waldron e9815013ac Remove syncing master from main 2020-09-14 12:04:28 -04:00
Alexey Shvayka 323905b70e Improve RegExp.prototype[@@replace] poisoned stdlib test 2020-09-10 16:24:23 -04:00
Alexey Shvayka d10446a5e4 Promise.prototype.finally calls PromiseResolved: add rejected promise test 2020-09-10 16:23:12 -04:00
Alexey Shvayka a841f07a11 Promise.prototype.finally calls PromiseResolved: add resolved promise test 2020-09-10 16:23:12 -04:00
Rick Waldron b25e36cdb6 Generate tests 2020-09-10 16:22:34 -04:00
Rick Waldron 95d51c4a15 Generation: don't make negative parse SyntaxError tests that have flags: [async]. Fixes gh-1229 2020-09-10 16:22:34 -04:00
Rick Waldron 758b9ec575 Coverage: `new await ...` and `new (await ...)`. Fixes gh-1898 2020-09-10 16:09:50 -04:00
Rick Waldron 6397602037 Update test/intl402/Segmenter/ctor-custom-get-prototype-poison-throws.js
Co-authored-by: Ujjwal Sharma <ryzokuken@disroot.org>
2020-09-10 16:08:39 -04:00
Rick Waldron cce13c4c24 Update test/intl402/Segmenter/constructor/constructor/options-localeMatcher-toString-abrupt-throws.js
Co-authored-by: Ujjwal Sharma <ryzokuken@disroot.org>
2020-09-10 16:08:39 -04:00
Rick Waldron 74bed11865 Update test/intl402/Segmenter/constructor/constructor/options-granularity-toString-abrupt-throws.js
Co-authored-by: Ujjwal Sharma <ryzokuken@disroot.org>
2020-09-10 16:08:39 -04:00
Frank Tang 7a4a637574 Address review comments 2020-09-10 16:08:39 -04:00
Frank Tang 4f8ee98d26 Remove Unused include: "propertyHelper.js" 2020-09-10 16:08:39 -04:00
Frank Tang 2886465593 Add true for the test case 2020-09-10 16:08:39 -04:00
Frank Tang 6d97fa208a Fix errors 2020-09-10 16:08:39 -04:00
Frank Tang 085cb50b25 Add more tests for Intl.Segmenter 2020-09-10 16:08:39 -04:00
ExE Boss 9c754bc3ce Add tests for cross‑realm and subclass calls of legacy static accessors 2020-09-10 16:07:17 -04:00
ExE Boss 391f799152 Add tests for cross‑realm and subclass `RegExp.prototype.compile` calls 2020-09-10 16:07:17 -04:00
ExE Boss d06c21c03a Add tests for property descriptors of legacy RegExp accessors 2020-09-10 16:07:17 -04:00
ExE Boss 391cd16f1f Add `legacy‑regexp` to `features` 2020-09-10 16:07:17 -04:00
Rick Waldron d9a6a03ffc String.prototype.split: Add features meta data 2020-09-10 15:28:00 -04:00
Alexey Shvayka 7a56df1119 Test that Date.prototype has no [[DateValue]] slot 2020-09-10 15:27:34 -04:00
Alexey Shvayka 9aef4bd5eb Test that Error.prototype has no [[ErrorData]] slot 2020-09-10 15:27:34 -04:00
Rick Waldron accf91c57d Coverage gaps found by quickjs. Fixes gh-2370 2020-09-10 15:23:19 -04:00
Rick Waldron 378481b041 Coverage of super reference behaviour. Fixes gh-2451 2020-09-10 15:22:57 -04:00
Rick Waldron 8287422b64 Coverage for assignment to left hand side expressions that are an assignment. Fixes gh-2487 2020-09-10 15:22:33 -04:00
Rick Waldron 0a977a691d In strict mode code, attempts to assign to an unresolvable reference must throw a ReferenceError exception. Fixes gh-1964 2020-09-10 15:22:02 -04:00
Rick Waldron 629b6d0917 Generate tests 2020-09-10 11:14:18 -04:00