test262/test/language/expressions/object/method-definition/generator-super-call-param.js

23 lines
423 B
JavaScript

// Copyright 2015 Cubane Canada, Inc. All rights reserved.
// See LICENSE for details.
/*---
info: |
GeneratorMethod early SyntaxError when super is called
directly inside generator args
features: [generators]
es6id: 14.4.1
author: Sam Mikes
description: GeneratorMethod error if HasDirectSuper in args
negative:
phase: parse
type: SyntaxError
---*/
$DONOTEVALUATE();
var obj = {
*foo(a = super()) {
}
};