Rick Waldron
e9f7b74855
Coverage: improved Reflect.apply testing with various inputs at args position. Fixes gh-2844
2020-10-05 13:56:19 -04:00
Rick Waldron
fd65b84378
Coverage: %TypedArray%.prototype.sort( comparefn = undefined ). Fixes gh-2843
2020-10-05 11:05:57 -04:00
Rick Waldron
6db0565b76
Generate tests
2020-10-05 10:53:43 -04:00
Rick Waldron
9e71e2120a
Generate tests
2020-10-05 10:53:43 -04:00
Gus Caplan
ad8a5e9940
add Arbitrary module namespace names feature
2020-09-30 14:08:10 -04:00
Rick Waldron
f4ec59ad38
Generate tests
2020-09-30 11:51:44 -04:00
Rick Waldron
70a39ad0fb
Fix: test/language/module-code/export-expname_FIXTURE.js remove frontmatter.
2020-09-30 10:22:52 -04:00
Rick Waldron
dc74a0b0ee
Generate tests
2020-09-30 10:05:47 -04:00
Rick Waldron
fd4ac46b34
Update test/language/module-code/export-expname-binding-string.js
...
Co-authored-by: ExE Boss <3889017+ExE-Boss@users.noreply.github.com>
2020-09-30 09:39:35 -04:00
Bradley Farias
c43c9d8448
Exports can be Arbitrary Strings
2020-09-30 09:39:35 -04:00
Rick Waldron
f4a9af6587
Fix: $262.detachArrayBuffer -> $DETACHBUFFER
2020-09-28 13:28:39 -04:00
Kevin Gibbons
c911f71888
Coverage: Date arithmetic is floating point
2020-09-28 09:11:00 -04:00
Yusuke Suzuki
3c789640ec
dft-currency-mnfd-range-check-mxfd.js should check maximumFractionDigits, not maximumSignificantDigits
...
This test is checking maximumSignificantDigits, but this is wrong. We should check maximumFractionDigits.
2020-09-28 09:09:09 -04:00
Rick Waldron
348a706c5d
Generate tests
2020-09-25 16:12:12 -04:00
Rick Waldron
677ae94ae9
Generate tests
2020-09-25 15:54:49 -04:00
Rick Waldron
21e97fb616
Generate tests
2020-09-25 14:42:12 -04:00
Rick Waldron
3f2a2aa464
Generate tests
2020-09-25 14:42:12 -04:00
Rick Waldron
cd778bea8c
Generate tests
2020-09-25 13:30:10 -04:00
Rick Waldron
73db72baad
Generate tests
2020-09-25 13:15:33 -04:00
Rick Waldron
76dacfb17c
Generate tests
2020-09-25 12:58:22 -04:00
Rick Waldron
5090f7adfe
Generate tests
2020-09-25 12:01:39 -04:00
Rick Waldron
e3b12065b2
Coverage: Array.prototype.item, String.prototype.item, TypedArray.prototype.item. Closes gh-2809, gh-2810, gh-2811
2020-09-24 17:23:38 -04:00
devsnek
bf205bac84
Remove annex b regex from main tests
2020-09-24 16:53:08 -04:00
Yusuke Suzuki
3fe45c44c6
Revert "Intl.NumberFormat + currency will throw an error if maximumFractionDigits is less than currencyDigits"
...
This reverts commit a7b9067fe1
.
I fixed the test with a7b9067fe1
based on the current spec, but this test was based on WIP spec change.
2020-09-24 14:55:28 -04:00
Rick Waldron
e2a4e79a11
Coverage: formal parameter binding identifier "eval" must have the correct value in non-strict code. Fixes gh-2814
2020-09-24 14:54:48 -04:00
Rick Waldron
16bf949629
Coverage: String.prototype.split method, regexp separator. Fixes gh-2813
2020-09-24 14:54:28 -04:00
Rick Waldron
834789514d
Rename: legacy -> description
2020-09-24 14:54:28 -04:00
Rick Waldron
e5fa1d5ef4
Transform: legacy $ERROR -> assert.*
2020-09-24 14:54:28 -04:00
Rick Waldron
dcbc02b7fa
Coverage: Object.getOwnPropertySymbols/Names called with non-object values. Fixes gh-2804
2020-09-24 14:53:26 -04:00
Rick Waldron
07cc3c8bb1
Coverage: calling array methods with boolean as thisValue. Fixes gh-2803
2020-09-24 14:52:48 -04:00
Rick Waldron
4bcc582183
Regenerate tests
2020-09-23 11:18:16 -04:00
Rick Waldron
601688856e
Generate tests
2020-09-23 11:18:16 -04:00
Rick Waldron
41c5a42fa7
Generate tests
2020-09-22 10:37:57 -04:00
Rick Waldron
b59bd307a8
Coverage: async arrow in ClassHeritage. Fixes gh-1736
2020-09-22 10:37:57 -04:00
Rick Waldron
fd92897147
Generate tests
2020-09-22 10:37:38 -04:00
Rick Waldron
82ee7a2cfb
Coverage: String.prototype.replace method calls toString on replaceValue (regexp object). Fixes gh-2797
2020-09-22 10:37:20 -04:00
HyeockJinKim
be99a3e519
Add coverage for rest properties with computed key
...
gh-2089
2020-09-22 10:31:33 -04:00
Yusuke Suzuki
e75ed15b91
Perl YAML parser cannot parse documents in options-granularity-abrupt-throws.js and options-granularity-toString-abrupt-throws.js
...
Remove line terminator.
2020-09-21 16:04:44 -04:00
Yusuke Suzuki
333da4198a
Connector of date and time style can be " at " or ", "
...
macOS system ICU is shipping new CLDR, but it has many overrides on the top of it to make the formatted output suitable for the system.
And in timedatestyle-en.js tests, we intentionally override the CLDR data with the different format.
This change modifies the test to accept that alternative output.
2020-09-19 15:35:45 -04:00
Rick Waldron
fd12f5bc6b
Coverage: Error message default value + cleanup. Fixes gh-2789
2020-09-18 16:42:22 -04:00
Rick Waldron
5e3761f5c8
Cleanup: parseInt, migrate legacy tests to assert, update messages.
2020-09-18 16:25:50 -04:00
Rick Waldron
55652110f7
Update test/language/statements/try/completion-values-fn-finally-abrupt.js
...
Co-authored-by: Kevin Gibbons <bakkot@gmail.com>
2020-09-18 16:19:13 -04:00
Leo Balter
536ecd08a9
completion values of try-catch-finally
2020-09-18 16:19:13 -04:00
Rick Waldron
5de16292fd
Coverage: try/catch/finally completion values. Fixes gh-1742
2020-09-18 16:19:13 -04:00
Rick Waldron
81db9994c9
Cover NumericLiteral..toString, NaN.toString, Infinity.toString. Fixes gh-1732
2020-09-17 16:24:33 -04:00
Rick Waldron
1ab47810d1
Generate tests
2020-09-17 16:24:07 -04:00
Rick Waldron
be7e9ff98b
Computed Property Names: YieldExpression that yields something.
2020-09-17 16:24:07 -04:00
Rick Waldron
916cdb72e5
Generate tests
2020-09-17 16:23:26 -04:00
Rick Waldron
67382a1e8e
Add await test: await is valid in non-module strict mode code.
2020-09-17 16:22:22 -04:00
Rick Waldron
057a31e15e
Add coverage for reserved words in shorthand properties. Fixes gh-1179
2020-09-17 16:22:22 -04:00
Rick Waldron
ab4a019a4d
Example output from legacy code transformer
2020-09-17 16:21:53 -04:00
Rick Waldron
b11c1607c0
Coverage: Object.assign, Assignment to readonly property of target must throw a TypeError exception. Fixes gh-2788
2020-09-17 16:21:26 -04:00
Rick Waldron
fd26fc17ea
Refactor: built-ins/FinalizationRegistry/gc-has-one-chance-to-call-cleanupCallback.js
...
Per recommendation here: https://github.com/web-platform-tests/wpt/pull/25496/files#r488316588
2020-09-17 10:00:02 -04:00
Rick Waldron
1cd7d87501
Object.defineProperty: Property description must be an object. Fixes gh-1754
2020-09-17 09:59:31 -04:00
Rick Waldron
db5b9c1dd9
Object.defineProperties: Property description must be an object. Fixes gh-1754
2020-09-17 09:59:31 -04:00
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
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
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
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
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
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
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
Rick Waldron
ff08e2bd4f
Generate tests
2020-09-10 11:14:18 -04:00
Alexey Shvayka
afd849ad29
Test "length" [[Value]] overflow check order in ArraySetLength
2020-09-09 14:40:23 -04:00
Alexey Shvayka
d993d87766
Test "length" [[Value]] coercion order in ArraySetLength
2020-09-09 14:40:23 -04:00
Alexey Shvayka
38f3014063
Test Date.prototype[@@toPrimitive] called as top-level function
2020-09-09 14:34:20 -04:00
Alexey Shvayka
b15c3a5b79
Test Date.prototype.toJSON called as top-level function
2020-09-09 14:34:20 -04:00
Alexey Shvayka
87398ac935
Test Error.prototype.toString called as top-level function
2020-09-09 14:34:20 -04:00
Alexey Shvayka
54ef2ae71d
Test RegExp.prototype.toString called as top-level function
2020-09-09 14:34:20 -04:00
Alexey Shvayka
9857b124c0
Test Array.prototype methods called as top-level functions
2020-09-09 14:34:20 -04:00
Rick Waldron
6bfcf4237a
SuperCall includes parenthesis. Fixes gh-1183 ( #2754 )
2020-09-04 11:42:43 -07:00
Rick Waldron
1c22e0b2f2
Atomics: fix test info contents to match definition as it appears in ES2020. Fixes gh-2721
2020-09-04 09:32:55 -04:00
Alexey Shvayka
b9cbff7378
Add poisoned Object.prototype.__proto__ test
2020-09-02 15:31:42 -04:00
Alexey Shvayka
c558dad25f
Add permitted duplicate test for shorthand properties
2020-09-02 15:31:42 -04:00
Alexey Shvayka
4d4c160674
Expand permitted duplicate test with async/generator methods
2020-09-02 15:31:42 -04:00
Yusuke Suzuki
8060bba447
Accessing order of fractionalSecondDigits should be earlier than timeZoneName
...
In this PR[1], fractionalSecondDigits is listed earlier than timeZoneName in table 6[2].
So, accessing order of fractionalSecondDigits in [3]'s step-29 should be earlier than timeZoneName.
[1]: https://github.com/tc39/ecma402/pull/347
[2]: https://tc39.es/ecma402/#sec-datetimeformat-abstracts
[3]: https://tc39.es/ecma402/#sec-initializedatetimeformat
2020-09-02 15:30:46 -04:00
Alexey Shvayka
c64db438df
Test [[Set]] failure near integer limit in Array.prototype.push
2020-09-02 15:30:33 -04:00
Rick Waldron
896994413c
Missing coverage for Object.defineProperty method. Fixes gh-2660 ( #2738 )
2020-08-31 12:59:07 -07:00
Alexey Shvayka
9e75c60028
Gracefully handle nullish arguments in harness/compareArray
2020-08-31 15:17:24 -04:00
Richard Gibson
93ff9b7262
Replace incorrect use of $DONOTEVALUATE
2020-08-21 15:58:21 -04:00
Richard Gibson
4f126a8ce9
Test the sequence of potentially abrupt steps in String.prototype.split
2020-08-21 15:58:21 -04:00
Richard Gibson
2dd3e50064
Fix confusing comment text
2020-08-21 15:58:21 -04:00
Rick Waldron
ced63df97b
ExportDeclaration : HoistableDeclaration; Fixes gh-2068 ( #2737 )
2020-08-20 14:42:35 -07:00
Alexey Shvayka
e0a65ee75e
Add %GeneratorFunction.prototype% test
2020-08-20 12:52:25 -04:00
Alexey Shvayka
fd91dd1e0e
Add %AsyncGeneratorFunction.prototype% test
2020-08-20 12:52:25 -04:00
Alexey Shvayka
34fb6c4374
Add %AsyncFunction.prototype% test
2020-08-20 12:52:25 -04:00
Alexey Shvayka
9411d7fccc
Array binding: add generated tests
2020-08-20 12:48:08 -04:00
Alexey Shvayka
36f73c6142
Add Function.prototype.length property descriptor test
2020-08-20 12:39:28 -04:00
Alexey Shvayka
51fac5f93b
Rename & improve large target function "length" test
2020-08-20 12:38:45 -04:00
Alexey Shvayka
8fbe2f82ef
Test default value of bound function "length" property
2020-08-20 12:38:45 -04:00
Alexey Shvayka
53d8d9d394
Merge & improve remaining arguments tests
2020-08-20 12:38:45 -04:00
Alexey Shvayka
233ca721f5
Test ToInteger performed on "length" value of target function
2020-08-20 12:38:45 -04:00
Alexey Shvayka
f80d7e7777
Merge & refactor bound function "length" property descriptor tests
2020-08-20 12:38:45 -04:00
Alexey Shvayka
897a05954f
Test "length" property descriptor of Function.prototype.bind
2020-08-20 12:38:45 -04:00
devsnek
00770684b5
Remove redundant and confusing test. ( #2728 )
...
The syntax error here is already tested by `language/expressions/delete/identifier-strict.js`. The description is just wrong.
2020-08-15 08:15:16 -07:00
Ujjwal Sharma
6c3f8cdc75
Update tests for tc39/ecma402#471 ( #2707 )
2020-08-13 10:31:24 -07:00
Alexey Shvayka
e0758bbeac
Add `if` statement test
2020-08-12 14:09:22 -04:00
Alexey Shvayka
73c04fc61d
Add logical OR operator test
2020-08-12 14:09:22 -04:00
Alexey Shvayka
69d74c18c2
Add logical NOT operator test
2020-08-12 14:09:22 -04:00
Alexey Shvayka
61188b8abc
Add logical assignment tests
2020-08-12 14:09:22 -04:00
Alexey Shvayka
ec6f77c4d1
Add logical AND operator test
2020-08-12 14:09:22 -04:00
Alexey Shvayka
8c2c50df3b
Add conditional operator test
2020-08-12 14:09:22 -04:00
Alexey Shvayka
4312dfa6a6
Add coalesce expression test
2020-08-12 14:09:22 -04:00
Alexey Shvayka
2f6d3a90b5
Add `switch` statement test
2020-08-12 14:06:34 -04:00
Alexey Shvayka
3732589424
Add abstract equality tests
2020-08-12 14:06:34 -04:00
Alexey Shvayka
f2036e21bf
Add strict equality tests
2020-08-12 14:06:34 -04:00
Alexey Shvayka
f95e9d3f85
Add Object.is test
2020-08-12 14:06:34 -04:00
Alexey Shvayka
9ddfa39eca
Add generated files
2020-08-12 18:58:26 +03:00
akluball
e73054f75e
Add tests for ZWJ and ZWNJ in identifiers ( #2723 )
2020-08-05 12:27:34 -07:00
Gus Caplan
5f99d05c6a
native function validator for your consideration
2020-08-04 19:44:31 -04:00
Gus Caplan
156186aee2
New NativeFunction tests
2020-08-04 19:44:31 -04:00
Ross Kirsling
ede5b2400f
Test TV for tagged templates too.
2020-08-03 21:33:44 -04:00
Ross Kirsling
f24b9004b3
Add tests for \9 in template/strict strings.
2020-08-03 21:33:44 -04:00
Leo Balter
e0ef80b967
Merge pull request #2712 from shvaikalesh/intl402-intl-object-tostringtag
...
Add Intl[@@toStringTag] coverage
2020-07-30 15:19:38 -07:00
Yusuke Suzuki
f6a9847c73
related-year-zh.js may not contain years ( #2718 )
...
macOS system ICU is shipping new CLDR, but it has many overrides on the top of it to make the formatted output suitable for the system.
And in related-year-zh.js tests, we intentionally override the CLDR data with the different format.
This change modifies the test to accept that alternative output.
2020-07-29 14:58:32 -07:00
Frank Yung-Fong Tang
0f5a274aad
Fix Segmenter tests: Check "input" in segment-*-iterable.js ( #2714 )
...
* Check "input" in segment-*-iterable.js
Remove dup test in segment-*.js
* Fix segment-tostring.js
2020-07-29 12:00:35 -07:00
Yusuke Suzuki
80b54781b0
Intl.Segmenter iterator result should have isWordLike only if type is "word" ( #2717 )
...
Update according to https://github.com/tc39/proposal-intl-segmenter/pull/128 .
2020-07-28 10:53:16 -07:00
Alexey Shvayka
c46be192bb
Remove duplicated Intl.toString() test
2020-07-23 10:13:18 +03:00
Alexey Shvayka
f9622ce80b
Remove duplicated Intl.[[Prototype]] test
2020-07-23 10:13:13 +03:00
Alexey Shvayka
aa4fd3fffa
Add Intl[@@toStringTag] coverage
2020-07-23 10:13:12 +03:00
Alexey Shvayka
c619375b46
Test [[IsHTMLDDA]] object with `typeof` operator ( #2706 )
2020-07-21 14:14:56 -07:00
Leo Balter
5a01caed71
Add feature tag for cleanupSome
...
The WeakRefs proposal advanced to Stage 4 but cleanupSome moved back to a Stage 2 status.
The tests should remain in Test262 for now but this feature flag should help users to
filter tests out.
2020-07-21 16:57:50 -04:00
Yusuke Suzuki
538fcd88d8
Intl.DisplayNames.length should be 2 ( #2711 )
...
`locales` and `options` are not optional parameters. So the length should be 2.
2020-07-20 16:29:05 -07:00
Ross Kirsling
fb05c9a4df
Add tests for \8 in template/strict strings. ( #2654 )
2020-07-20 13:25:59 -07:00
Jordan Harband
4203041cef
Add tests for `Reflect[Symbol.toStringTag]` ( #2710 )
...
Ref https://github.com/tc39/ecma262/pull/2057
Co-authored-by: Leo Balter <leonardo.balter@gmail.com>
2020-07-20 13:23:56 -07:00
Leo Balter
7e4657243b
Refactor tests for static methods creation and fetching
...
Ref #2504
2020-07-15 16:13:40 -04:00
Leo Balter
2e127ec40e
Rename usage of master to main
...
Ref #2699
2020-07-15 15:47:15 -04:00
Alexey Shvayka
e193b449d4
Test [[IsHTMLDDA]] object as "prototype" of superclass ( #2702 )
2020-07-15 10:50:02 -07:00
Leo Balter
8575a6eb1d
Merge pull request #2698 from FrankYFTang/fixDisplayNames
...
Intl.DisplayNames make type required
2020-07-13 16:18:55 -07:00
Frank Tang
5010996d5d
Test invalid type
2020-07-13 15:50:07 -07:00
Leo Balter
b9e4010b20
Fix language in test file ( #2700 )
2020-07-13 15:01:38 -07:00
Frank Tang
3c89cde3e0
Intl.DisplayNames make type required
...
Update the tests to the latest version after we make
the type option now required
Spec:
https://tc39.es/proposal-intl-displaynames/
Changes of spec:
https://github.com/tc39/proposal-intl-displaynames/pull/76
https://github.com/tc39/proposal-intl-displaynames/pull/83
2020-07-10 19:19:34 -07:00
Frank Yung-Fong Tang
59f5b49359
remove 0 from the range and use undefined
2020-07-09 21:52:54 -04:00
Frank Yung-Fong Tang
1161eee3e4
use undefined instead of 0
2020-07-09 21:52:54 -04:00
Frank Yung-Fong Tang
36e4278f20
use undefined instead of 0 so range is only 1-3
2020-07-09 21:52:54 -04:00
Frank Yung-Fong Tang
21824359d0
restrict the range from 1 to 3
2020-07-09 21:52:54 -04:00
Frank Yung-Fong Tang
e620226cd7
limit the range to 1 to 3 only
2020-07-09 21:52:54 -04:00
QuXing9
19653bdfc8
Additional tests for escape and unescape methods ( #2695 )
...
Co-authored-by: Leo Balter <leonardo.balter@gmail.com>
2020-07-09 10:16:18 -07:00
QuXing9
91a9abff4e
Add three testcases for test262 suite. ( #2692 )
...
* Add tests for escape function when parameter is not a string.
Fixes #2687
Fixes #2637
* Add test for indirect eval calls when script is a for statement.
When for statement doesn't have a body, it should throw a SyntaxError.
Fixes #2661
* Add tests for Function Constructor when body contains usestrict.
Fixes #2688
Fixes #2638
2020-07-09 09:57:55 -07:00
Rick Waldron
d3c693bdfe
AggregateError: update args order evaluation ( #2647 )
...
Fixes #2646
2020-07-08 12:13:36 -07:00
Leo Balter
bc433f1e1c
Fix typo in the tests for waitAsync
...
Fixes #2689
2020-07-08 13:46:07 -04:00
Alexey Shvayka
c472aeea4b
Use $DONE instead of $ERROR to avoid unhandled rejections
2020-07-07 11:16:04 -07:00
Alexey Shvayka
739c4cd78d
Remove duplicate of "subclass-species-constructor-resolve-count.js"
2020-07-07 11:16:04 -07:00
Yusuke Suzuki
281eb10b28
Intl.DateTimeFormat.{formatRange,formatRangeToParts} should throw TypeError instead of RangeError if either of parameter is undefined ( #2685 )
...
http://tc39.es/proposal-intl-DateTimeFormat-formatRange/
The spec draft throws TypeError instead of RangeError.
1.4.5 Intl.DateTimeFormat.prototype.formatRange ( startDate , endDate )
...
4. If startDate is undefined or endDate is undefined, throw a TypeError exception.
1.4.6 Intl.DateTimeFormat.prototype.formatRangeToParts ( startDate , endDate )
...
4. If startDate is undefined or endDate is undefined, throw a TypeError exception.
2020-07-01 14:45:43 -07:00
Gus Caplan
fe3ad55d80
add missing Promise.any features ( #2686 )
2020-07-01 10:33:56 -07:00
Leo Balter
89f9c13449
Expand tests for Optional Chaining
2020-06-30 17:37:01 -04:00
Rick Waldron
6179359305
Promise.any: coverage updates, R4 ( #2683 )
2020-06-30 13:56:55 -07:00
Rick Waldron
16b48a1271
Promise.allSettled: coverage updates, R2 ( #2684 )
2020-06-30 13:56:04 -07:00
André Bargull
836f609b08
Update Atomics.exchange to allow non-shared buffers
...
Follow-up for: https://github.com/tc39/test262/pull/2633
2020-06-30 16:04:25 -04:00
Rick Waldron
51e73466ee
Atomics.waitAsync: more guards against false positive test passing ( #2678 )
2020-06-30 07:40:18 -07:00
André Bargull
b5650d23a5
Don't call $DONE twice in S25.4.4_A2.1_T3.js ( #2679 )
...
Reverts the change from 040eb5393a
to avoid
calling $DONE twice in the test file.
2020-06-25 08:35:46 -07:00
Rick Waldron
fcb3b91e4a
Atomics.waitAsync: await $262.agent.getReportAsync() in a loop, instead of calling thrice asynchronously. Fixes 2664 ( #2676 )
2020-06-24 13:51:52 -07:00
Rick Waldron
ae7b606cc2
Atomics: use .then($DONE, $DONE) wherever possible
2020-06-24 15:47:49 -04:00
Rick Waldron
362d7af20f
Generate tests
2020-06-24 15:47:49 -04:00
Rick Waldron
a816c03735
Generate tests
2020-06-24 15:47:48 -04:00
Rick Waldron
2f12ab71f8
Promise: use .then($DONE, $DONE) wherever possible
2020-06-24 15:47:48 -04:00
Rick Waldron
040eb5393a
Promises: whenever evaluating checkSequence(sequence), also assert length of sequence ( #2672 )
2020-06-24 12:18:35 -07:00
Alexey Shvayka
20a1345bbe
Add Array.prototype.lastIndexOf test
2020-06-24 15:14:04 -04:00
Alexey Shvayka
545e66b251
Add Array.prototype.indexOf test
2020-06-24 15:14:04 -04:00
Rick Waldron
9dbaa95aed
Promise.race: coverage updates ( #2666 )
...
Ref #2629
2020-06-24 11:42:40 -07:00
Rick Waldron
729fa02951
Atomics: update Atomics.sub to match latest proposed spec change
...
https://github.com/tc39/ecma262/pull/1908#issuecomment-647614204
2020-06-24 12:26:41 -04:00
Rick Waldron
529cff8ee6
Atomics: corrections
2020-06-24 12:26:41 -04:00
Rick Waldron
7e603ae236
Atomics: fix mispelled harness function name
2020-06-24 12:26:41 -04:00
Rick Waldron
4adc41eccf
Atomics.* assertion messages and formatting
2020-06-24 12:26:41 -04:00
Rick Waldron
d3980866c8
Atomics.xor will operate on TA when TA.buffer is not a SharedArrayBuffer
2020-06-24 12:26:41 -04:00
Rick Waldron
e4d24694ea
Atomics.sub will operate on TA when TA.buffer is not a SharedArrayBuffer
2020-06-24 12:26:41 -04:00
Rick Waldron
5e43594d44
Atomics.store will operate on TA when TA.buffer is not a SharedArrayBuffer
2020-06-24 12:26:41 -04:00
Rick Waldron
131165be7e
Atomics.or will operate on TA when TA.buffer is not a SharedArrayBuffer
2020-06-24 12:26:41 -04:00
Rick Waldron
e1c71a65e2
fixup! Atomics.and will operate on TA when TA.buffer is not a SharedArrayBuffer
2020-06-24 12:26:41 -04:00
Rick Waldron
9e7b4e733d
Fix license lint & issues
2020-06-24 12:26:41 -04:00
Rick Waldron
2979e917a2
Atomics: fix assertion messages
2020-06-24 12:26:41 -04:00
Rick Waldron
1f977dc9fc
Atomics.exchange will operate on TA when TA.buffer is not a SharedArrayBuffer
2020-06-24 12:26:41 -04:00
Rick Waldron
eb5120a1e9
Atomics.compareExchange will operate on TA when TA.buffer is not a SharedArrayBuffer
2020-06-24 12:26:41 -04:00
Rick Waldron
f82e09bab0
Atomics.and will operate on TA when TA.buffer is not a SharedArrayBuffer
2020-06-24 12:26:41 -04:00
Rick Waldron
b4517aa192
Atomics.add will operate on TA when TA.buffer is not a SharedArrayBuffer
2020-06-24 12:26:41 -04:00
Rick Waldron
8182e4efc4
Atomics.store will operate on TA when TA.buffer is not a SharedArrayBuffer
2020-06-24 12:26:41 -04:00
Rick Waldron
11a1eabcc6
Atomics.load will operate on TA when TA.buffer is not a SharedArrayBuffer
2020-06-24 12:26:41 -04:00
Rick Waldron
302f37eeff
Atomics.notify changed to always return 0 on non-shared
2020-06-24 12:26:41 -04:00
Meir Blachman
f7322cca7a
use $ERROR instead of throwing in 15.2.3.7-2-18.js
2020-06-24 12:25:30 -04:00
André Bargull
649d0d2c9a
Update list of non-algorithmic numbering systems
...
Per https://github.com/tc39/ecma402/pull/438
2020-06-24 12:11:36 -04:00
André Bargull
3d411fa969
Assert 'errors' is absent for AggregateError.prototype
2020-06-24 12:11:36 -04:00
André Bargull
660a3d6512
Remove built-ins/NativeErrors/AggregateError/prototype/errors
...
The `errors` property accessors has been removed from the spec proposal.
2020-06-24 12:11:36 -04:00
André Bargull
630f7dee66
Updated expected error in NumberFormat constructor per current spec
2020-06-24 12:11:36 -04:00
André Bargull
d42aaa4b15
Expect `undefined` when no fractional second digits are present
...
Change the expected value per the current PR.
2020-06-24 12:11:36 -04:00
Toru Nagashima
28c6ea208d
add eval-optional-call.js ( #2667 )
2020-06-22 10:58:06 -07:00
Leo Balter
5908ed29ac
Fix tests for HTML comments in function body evaluation ( #2109 )
...
Ref tc39/ecma262#1479
2020-06-19 15:06:16 -07:00
Frank Tang
8d3dd2d1a0
Sync the test w/ changes in intl-datetime-style 43
...
See
https://github.com/tc39/proposal-intl-datetime-style/pull/43
2020-06-17 12:44:31 -04:00
Alexey Shvayka
2dcdba94e5
Simplify tests
2020-06-17 12:42:37 -04:00
Alexey Shvayka
23417d9569
Test %TypedArray%.prototype.set with primitives
2020-06-17 12:42:37 -04:00
Rick Waldron
f89ea8758b
Atomics.waitAsync: BigInt ( #2642 )
...
* Atomics.waitAsync: BigInt
* Atomics.waitAsync: check for function to avoid false positives
2020-06-12 09:57:14 -07:00
Rick Waldron
f2ab5b6ca1
Promise.any: coverage update r3 ( #2658 )
2020-06-12 09:55:37 -07:00
Rick Waldron
c4c978b7ed
Promise.all, Promise.allSettled: coverage updates ( #2657 )
2020-06-12 09:54:52 -07:00
Alexey Shvayka
7ed6238a89
Replace `instanceof` with reference equality
2020-06-11 19:36:49 -04:00
Alexey Shvayka
ce662e5474
Add async generator tests
2020-06-11 19:36:49 -04:00
Alexey Shvayka
ac4d02d77a
Fix Promise.prototype.finally test
2020-06-11 19:36:49 -04:00
Alexey Shvayka
adf2cf4204
Add %TypedArray%.prototype.lastIndexOf tests
2020-06-10 15:59:14 -04:00
Alexey Shvayka
063cdb5731
Add %TypedArray%.prototype.indexOf tests
2020-06-10 15:59:14 -04:00
Alexey Shvayka
8095883a81
Test [[IsHTMLDDA]] object as superclass
2020-06-10 14:03:10 -04:00
Justin Ridgewell
5783f55b70
Fix init values
2020-06-10 12:34:03 -04:00
Justin Ridgewell
cbea466883
Add test for NamedEvaluation of Logical Assignment
2020-06-10 12:34:03 -04:00
Frank Tang
ae0de0b6bb
Remove redundant assert
2020-06-10 12:30:58 -04:00
Frank Tang
c6fd7eb602
Update Intl.Segmenter to latest spec
...
Remove methods removed in the latest reversion.
Still need to add tests for:
1.5.2.1 %SegmentsPrototype%.containing ( index )
1.6.2.1 %SegmentIteratorPrototype%.next ()
1.6.2.2 %SegmentIteratorPrototype% [ @@toStringTag ]
2020-06-10 12:30:58 -04:00
Alexey Shvayka
290ceba31f
Update Promise.any tests
2020-06-03 15:49:04 -04:00
Alexey Shvayka
fb88b47938
Update Promise.race tests
2020-06-03 15:49:04 -04:00
Alexey Shvayka
c915741594
Update Promise.allSettled tests
2020-06-03 15:49:04 -04:00
Alexey Shvayka
cf37b039a8
Update Promise.all tests
2020-06-03 15:49:04 -04:00
Rick Waldron
081afde9c1
Promise.any: coverage updates, R3
2020-06-03 11:07:28 -07:00
Rick Waldron
9999dff8fd
Promise.any: coverage updates, R2
2020-06-03 11:07:28 -07:00
Rick Waldron
3604a65a29
Promise.any: coverage updates, R1
2020-06-03 11:07:28 -07:00
Alexey Shvayka
0fcc51c9e2
Update copyright for "length" test
2020-06-03 14:03:21 -04:00
Alexey Shvayka
3a4bd7d050
Add symbol primitive test
2020-06-03 14:03:21 -04:00
Alexey Shvayka
38050f0cdd
Add string primitive test
2020-06-03 14:03:21 -04:00
Alexey Shvayka
f4b30daf12
Rename & improve "length" test
2020-06-03 14:03:21 -04:00
Alexey Shvayka
616978791d
Use Promise chaining
2020-06-03 13:25:03 -04:00
Alexey Shvayka
919415704b
Add TypedArrayConstructors test
2020-06-03 13:25:03 -04:00