Remove LITERAL_POOL_IN_EXPORT flag at class statement end (#4348)

Fixes #4265

JerryScript-DCO-1.0-Signed-off-by: Peter Marki marpeter@inf.u-szeged.hu
This commit is contained in:
Peter Marki
2020-11-30 10:50:13 +01:00
committed by GitHub
parent 19011258d8
commit 8eda7cb7d8
2 changed files with 22 additions and 0 deletions
@@ -0,0 +1,19 @@
// Copyright JS Foundation and other contributors, http://js.foundation
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
try {
eval ("export class Dog {constructor() {}}; for (var a")
} catch (e) {
assert (e instanceof SyntaxError)
}