mirror of
https://github.com/tc39/test262.git
synced 2025-10-15 12:58:58 +02:00
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.
18 lines
434 B
JavaScript
18 lines
434 B
JavaScript
// Copyright (C) 2015 Mozilla Corporation. All rights reserved.
|
|
// This code is governed by the BSD license found in the LICENSE file.
|
|
|
|
/*---
|
|
author: Jeff Walden
|
|
es6id: 13.3.1.1
|
|
description: >
|
|
const: |const let| split across two lines is a static semantics early error.
|
|
info: >
|
|
Lexical declarations may not declare a binding named "let".
|
|
negative:
|
|
phase: early
|
|
type: SyntaxError
|
|
---*/
|
|
|
|
const
|
|
let = "irrelevant initializer";
|