Mike Pennisi
4dc81d3788
Add tests for tail-call optimization
...
ECMAScript 2015 introduced tail call optimization for function calls
occuring in a number of positions in the grammar. Assert expected
behavior by triggering a large (but configurable) number of recursive
function calls in these positions. Compliant runtimes will execute such
programs without error; non-compliant runtimes are expected to fail
these tests by throwing an error or crashing when system resources are
exhausted.
2016-02-01 13:20:17 -05:00
Mike Pennisi
e62d43c815
Update tests according to ES2016 draft semantics
...
The ES2016 draft further refines the completion values for `if` and
`with` statements. Two tests must be removed outright because the
completion value in those cases is no longer accessible from the
runtime.
2016-01-22 15:00:54 -05:00
Mike Pennisi
407b8964ce
Add tests for ES2015 completion reform
...
In order to facilitate proper tail calls, ES2015 modified the completion
value of a number of statements.
These tests use `eval` to verify the new values.
2016-01-22 15:00:03 -05:00
Mike Pennisi
19762b927a
Add tests for iterator expression in ForIn/Of head
...
Although the `for..in` statement allows Expressions to define the
iterator, only an AssignmentExpression may occupy this position in the
`for..of` statement.
2016-01-19 12:27:33 -05:00
Gorkem Yakin
4d418a9fe7
Merge pull request #468 from bocoup/subclassing
...
Subclassing built-in objects
2016-01-14 11:48:57 -08:00
Gorkem Yakin
c9764dc5b5
Merge pull request #460 from bocoup/destructuring-binding
...
Destructuring Binding - syntax and simple initialization
2016-01-13 16:03:24 -08:00
Leonardo Balter
42d1a10d6d
fixup! Add tests for Array - calling super with a single argument
2016-01-13 13:28:00 -05:00
Leonardo Balter
c99ace29d7
Move subclass tests to test/language/statements/class/subclass/builtin-objects
2016-01-12 16:45:03 -05:00
Leonardo Balter
705940d205
Add tests for Subclassing the built-in Proxy Object
2016-01-12 16:40:19 -05:00
Leonardo Balter
d30e98df53
Add tests for Subclassing the built-in Promise Objects
2016-01-12 16:39:00 -05:00
Leonardo Balter
85ee704ad7
Add tests for Subclassing the built-in GeneratorFunction Objects
2016-01-12 15:17:59 -05:00
Leonardo Balter
4e079a8cab
Add tests for Subclassing the built-in DataView Objects
2016-01-12 14:02:00 -05:00
Leonardo Balter
0c40ed0cf0
Add tests for Subclassing the built-in ArrayBuffer Objects
2016-01-11 17:57:47 -05:00
Leonardo Balter
4ad09e5060
Add tests for Subclassing the built-in WeakSet Objects
2016-01-11 17:57:47 -05:00
Leonardo Balter
ff3724fd43
Add tests for Subclassing the built-in WeakMap Objects
2016-01-11 17:57:46 -05:00
Leonardo Balter
194b6b597f
Add tests for Subclassing the built-in Set Objects
2016-01-11 17:57:46 -05:00
Leonardo Balter
ba1482df8a
Add tests for Subclassing the built-in Map Objects
2016-01-11 17:57:46 -05:00
Leonardo Balter
6fdf6dd752
Add tests for Subclassing the built-in TypedArray Objects
2016-01-11 17:57:46 -05:00
Leonardo Balter
27764aa355
Add tests for Subclassing the built-in String Objects
2016-01-11 17:57:45 -05:00
Leonardo Balter
fc160c78ad
Add tests for Subclassing the built-in RegExp Objects
2016-01-11 17:57:45 -05:00
Leonardo Balter
5be3a8019d
Add tests for Subclassing the built-in Date Objects
2016-01-11 17:57:45 -05:00
Leonardo Balter
f5b5ad47e5
Add tests for Subclassing the built-in Number Objects
2016-01-11 17:57:45 -05:00
Leonardo Balter
67ec7fbf7b
Add tests for Subclassing the built-in NativeError Objects
2016-01-11 17:57:44 -05:00
Leonardo Balter
390c7a7fdb
Add tests for Subclassing the built-in Error Object
2016-01-11 17:57:44 -05:00
Leonardo Balter
a5b3c84fbd
Add tests for Subclassing the built-in Symbol Object
2016-01-11 17:57:43 -05:00
Leonardo Balter
47faa3ec58
Add tests for Subclassing the built-in Boolean Object
2016-01-11 17:57:43 -05:00
Leonardo Balter
1bcc056914
Add tests for Subclassing the built-in Function Object
2016-01-11 17:57:43 -05:00
Leonardo Balter
cde62d08d8
Add tests for Subclassing the built-in Object
2016-01-11 17:57:42 -05:00
Leonardo Balter
7a87731d9c
Add tests for Subclassing the built-in Array Object
2016-01-11 17:57:42 -05:00
Leonardo Balter
5e653f2e6c
ObjectBindingPatterns can't end with multiple commas
2015-12-29 16:50:23 -05:00
Leonardo Balter
7e24ed9999
Destructuring Binding - syntax and simple initialization
2015-12-29 16:31:12 -05:00
André Bargull
92423d3c9f
Add tests for instanceof operator when prototype property is primitive or getter
2015-12-22 19:05:53 +01:00
Jeff Walden
78ca60e6cf
Add tests verifying that ASI can't occur after the leading let/const in |let let|, |let let = "...";|, and |const let = "...";|. Each matches the LexicalDeclaration production, then triggers an early error before evaluation because it attempts to bind "let".
2015-12-18 15:03:04 -05:00
André Bargull
b62dccf1dc
Add test cases for recent ES2016 fixes
...
- lastIndex in RegExp.prototype[Symbol.split]: tc39/ecma262@08b4756747
- Missing number conversion in DataView.prototype.setXXX: tc39/ecma262@4f875fe96d
- Negative zero byteoffset in TypedArray: tc39/ecma262@2d1ed20db7
- EvalDeclarationInstantiation throws TypeError: tc39/ecma262@2be6968715
- BindingRestElement allows BindingPattern: tc39/ecma262@d322357e6b
- Eval in parameters with computed property keys: tc39/ecma262@04e2e9b719
- Use strict with non-simple parameters: tc39/ecma262@15b0db41ed
- __proto__ in strict mode: tc39/ecma262@5c1984334d
2015-12-15 17:33:49 +01:00
André Bargull
bd8c91e250
Updates for ES2016 Draft 2015-12-01
...
- RegExp.prototype[Symbol.split] calls ToUint32 (https://github.com/tc39/ecma262/issues/92 )
- Species lookup removed from Promise.all and Promise.race (https://github.com/tc39/ecma262/issues/151 )
- Generator functions are no longer constructors (https://github.com/tc39/ecma262/pull/171 )
Fixes #444
2015-12-02 18:07:06 +01:00
André Bargull
56d6eefb69
Fix expected completion value
...
- if-statement completion value semantics was not properly updated in ES2015
2015-11-11 17:47:15 +01:00
André Bargull
1da4c78051
Revert primitive wrapper prototypes and String#split to ES5
...
- Revert Number, Boolean and String prototypes to ES5 semantics
- Revert String.prototype.split's to ES5 behavior
2015-11-06 18:50:44 +01:00
Mike Pennisi
e39f8d88c5
Add tests for well-known Symbol: @@unscopables
2015-10-05 11:57:31 -04:00
Gorkem Yakin
26e6fd7c17
Convert binary integers to octal in octal integer tests
2015-09-30 08:54:45 -07:00
Brian Terlson
0d9733e93b
Merge pull request #432 from cfarm/increment-typo
...
fixes increment typo
2015-09-18 10:53:14 -07:00
Gorkem Yakin
117c3f386e
Merge pull request #418 from bocoup/symbol-to-primitive
...
Add tests for well-known Symbol: @@toPrimitive
2015-09-18 09:07:51 -07:00
Catherine Farman
b175e34478
fixes increment typo
2015-09-18 11:14:32 -04:00
Rick Waldron
5ddb903e98
Merge pull request #393 from anba/non-browser
...
Improve compatibility for engines without support for Annex B and non-standard features
2015-09-07 15:32:03 -04:00
André Bargull
ffec41b7af
Improve compatibility for engines without support for Annex B
2015-09-07 20:40:09 +02:00
unknown
35038fdb10
update tests for arrow-function
2015-09-07 14:51:11 +08:00
Rick Waldron
9ccc663936
Merge pull request #415 from anba/remove-runTestCase-finally
...
Replace runTestCase when used with try-finally
2015-09-04 15:20:26 -04:00
Rick Waldron
2bfe4a4716
Merge pull request #416 from anba/remove-runTestCase-language-rest
...
Replace runTestCase in test/language (part 2)
2015-09-04 15:18:40 -04:00
Rick Waldron
a2554d909b
Merge branch 'remove-runTestCase-builtins-other' of https://github.com/anba/test262 into anba-remove-runTestCase-builtins-other
...
# By André Bargull
# Via André Bargull
* 'remove-runTestCase-builtins-other' of https://github.com/anba/test262 :
Replace runTestCase with assert helpers, rest [test/built-ins]
Replace runTestCase with assert helpers [test/built-ins]
Conflicts:
test/built-ins/Array/from/S22.1.2.1_T1.js
test/built-ins/Array/from/S22.1.2.1_T2.js
test/built-ins/Array/from/S22.1.2.1_T3.js
2015-09-04 13:25:41 -04:00
Leonardo Balter
73409cea4e
Add tests for default parameters
2015-09-02 18:01:51 -04:00
Gorkem Yakin
c04984872d
Merge pull request #370 from bocoup/symbol-has-instance
...
Add tests for well-known Symbol, @@hasInstance
2015-08-31 16:32:55 -07:00