Skip to content
Snippets Groups Projects
Commit b183a6f5 authored by Leo Balter's avatar Leo Balter
Browse files

Update tests to verify lexical grammar of private names

No whitespace allowed between the sigil and the identifier name
parent 19df5b04
No related branches found
No related tags found
No related merge requests found
// Copyright (C) 2018 Bloomberg LP. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: Syntax error if whitespace after '#' sigil
template: syntax
features: [class-methods-private]
negative:
phase: parse
type: SyntaxError
---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- methods
static set # m() {}
// Copyright (C) 2018 Bloomberg LP. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
desc: Syntax error if whitespace after '#' sigil
template: syntax
features: [class-methods-private]
negative:
phase: parse
type: SyntaxError
---*/
//- setup
throw "Test262: This statement should not be evaluated.";
//- methods
set # m() {}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment