test262/test/language/statements/const/syntax/const-declaring-let-split-across-two-lines.js
Mike Pennisi ade6d2e384 Remove "NotEarlyError" object
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.
2016-10-19 15:24:22 -04:00

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";