mirror of https://github.com/tc39/test262.git
34 lines
893 B
JavaScript
34 lines
893 B
JavaScript
|
// Copyright (C) 2020 Rick Waldron. All rights reserved.
|
||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||
|
|
||
|
/*---
|
||
|
description: >
|
||
|
Object literal shorthands are limited to valid identifier references. Future Reserved Words are disallowed in Strict Mode. (private)
|
||
|
esid: sec-object-initializer
|
||
|
flags: [noStrict]
|
||
|
info: |
|
||
|
PropertyDefinition:
|
||
|
IdentifierReference
|
||
|
CoverInitializedName
|
||
|
PropertyName : AssignmentExpression
|
||
|
MethodDefinition
|
||
|
|
||
|
Identifier : IdentifierName but not ReservedWord
|
||
|
It is a Syntax Error if this phrase is contained in strict mode code and
|
||
|
the StringValue of IdentifierName is: "implements", "interface", "let",
|
||
|
"package", "private", "protected", "public", "static", or "yield".
|
||
|
negative:
|
||
|
phase: parse
|
||
|
type: SyntaxError
|
||
|
---*/
|
||
|
|
||
|
$DONOTEVALUATE();
|
||
|
|
||
|
var private = 1;
|
||
|
(function() {
|
||
|
"use strict";
|
||
|
({
|
||
|
private
|
||
|
});
|
||
|
});
|