blob: 7053e98bada0ee2de9c6de00af40723d7efb044f [file] [log] [blame]
//-------------------------------------------------------------------------------------------------------
// Copyright (C) Microsoft. All rights reserved.
// Licensed under the MIT license. See LICENSE.txt file in the project root for full license information.
//-------------------------------------------------------------------------------------------------------
try {
eval("function f1() { class c extends BaseClass { *f3(a = yield) { } } };");
WScript.Echo('FAILED');
} catch (e) {
if (e instanceof SyntaxError) {
WScript.Echo('PASSED');
} else {
WScript.Echo('FAILED');
}
}