- Jan 25, 2019
-
-
Adrian Heine authored
According to sec-identifiers-static-semantics-assignmenttargettype, `AssignmentTargetType` of `arguments` and `eval` in non-strict mode code is `simple`. sec-update-expressions-static-semantics-early-errors mandates early errors for `UpdateExpression` if `AssignmentTargetType` is `invalid` or `strict`.
-
- Dec 20, 2018
-
-
Rick Waldron authored
-
- Oct 23, 2018
-
-
Mathias Bynens authored
-
Mathias Bynens authored
Closes #1634.
-
- Sep 24, 2018
-
-
jugglinmike authored
The tests for the parsing of postfix increment, postfix decrement, prefix increment, and prefix decrement were expressed using `eval`. This made the tests more complex than necessary and also prevented the tests from providing value to ECMAScript parsers. Remove the use of `eval` and instead express the expectations with literal source text.
-
- Jul 24, 2018
-
-
Thomas Wood authored
Additionally removed the `arrow-function` feature for test/language/eval-code/direct/new.target-fn.js as it is not testing arrow-functions, but they are mentioned in the preamble.
-
- Jan 05, 2018
-
-
Mike Pennisi authored
Early errors may result from parsing the source text of a test file, but they may also result from parsing some other source text as referenced through the ES2015 module syntax. The latter form of early error is not necessarily detectable by ECMAScript parsers, however. Because of this, the label "early" is not sufficiently precise for all Test262 consumers to correctly interpret all tests. Update the "phase" name of "early" to "parse" for all those negative tests that describe errors resulting from parsing of the file's source text directly. A forthcoming commit will update the remaining tests to use a "phase" name that is more specific to module resolution.
-
Rick Waldron authored
-
- Oct 04, 2017
-
-
Josh Wolfe authored
-
- Jun 28, 2017
-
-
Mike Pennisi authored
This pattern makes expectations more explicit by making test files more literal.
-
- Apr 13, 2017
-
-
André Bargull authored
-
- Oct 19, 2016
-
-
Mike Pennisi authored
Because expectations regarding error "phase" are now expressed via test meta-data, the test runner may now enforce this requirement on negative tests. Remove the "NotEarlyError" from the project source. This reduces the amount of domain knowledge required to author tests and lessens the potential for inconsistencies between tests.
-
Mike Pennisi authored
Authored via the following command: $ find test -type f -print0 | \ xargs -0 sed \ -i 's/^\(\s*\)negative:\s*SyntaxError\s*$/\1negative:\n\1 phase: early\n\1 type: SyntaxError/g'
-
Mike Pennisi authored
-
- Oct 18, 2016
-
-
Mike Pennisi authored
Improve test consistency by using the `assert.throws` helper function to assert runtime exceptions. Remove superfluous code.
-
- Jul 05, 2016
-
-
jugglinmike authored
This re-factors some existing Sputnik tests to be more targeted and to use a pattern that can be generalized to other forms. We could test these all day, but I've limited myself to forms introduced in ES2015, specifically YieldExpression and new.target. Note that SpiderMonkey incorrectly throws a SyntaxError for these. I thoughtlessly wrote ReferenceError tests for yield = 1 until I realized that such productions are not actually recognized by the grammar, so the early errors do not apply. Instead, I've added a negative syntax test for that case. * Refactor test for valid cover * Add tests for ValidSimpleAssignmentTarget Ensure that constructs introduced in ES2015 are disallowed as assignment targets, with or without a "cover" grammar. * Add test for grammar precedence of YieldExpression
-
- Apr 25, 2016
-
-
Mike Pennisi authored
This harness function is not necessary in the majority of cases in which it is used. Remove its usage to simplify tests and decrease the amount of domain-specific knowledge necessary to contribute to the test suite. Persist the harness function itself for use by future tests for ES2015 modules (such a helper is necessary for tests that are interpreted as module code).
-
- Aug 13, 2015
-
-
André Bargull authored
-
- Aug 11, 2015
-
-
André Bargull authored
-
- Jul 17, 2015
-
-
André Bargull authored
-
- Jun 29, 2015
-
-
Mike Pennisi authored
In ECMAScript 5, assignment to a non-reference value throws a runtime ReferenceError. ECMAscript 6 specifies an early ReferenceError in these cases. Tests for this behavior have been authored to pass in both cases. Simplify these tests to describe and assert the early error.
-
- Jun 18, 2015
-
-
Mike Pennisi authored
Some tests specifically concern the application of the `use strict` directive as it appears in JavaScript source code. These tests should *not* be run with the `onlyStrict` flag because relying on the test runner to enable strict mode makes the semantics of the source code irrelevant. Update these tests to use the `noStrict` flag. Other tests concern language semantics that are only valid in strict mode, but the mechanism for enabling strictness is inconseqential. Update these tests to use the `onlyStrict` flag and remove any redundant `use strict` directive prologues contained within. Still other tests are valid both within and outside of strict mode. In keeping with the majority of other tests, do not specify any restrictions on the environments in which these tests may be run.
-
- May 19, 2015
-
-
André Bargull authored
The increment/decrement operator evaluates its operand expression once. When the operand expression is a property accessor, RequireObjectCoercible and ToPropertyKey are called on the property accessor in the correct order.
-
- Feb 12, 2015
-
-
Rick Waldron authored
-
- Dec 11, 2014
-
-
André Bargull authored
Identifier resolution in dynamic scope context is missing test coverage, resolves https://bugs.ecmascript.org/show_bug.cgi?id=1751 .
-
- Dec 07, 2014
-
-
Brian Terlson authored
-