test262/test/language/module-code/undef-break.js

15 lines
371 B
JavaScript

// Copyright (C) Copyright 2015 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: 15.2.1.1
description: >
It is a Syntax Error if ContainsUndefinedBreakTarget of ModuleItemList with
argument « » is true.
flags: [module]
negative: SyntaxError
---*/
while (false) {
break undef;
}