Improve yield support and restrict usage of strict
- Partially reverting91cdb93e57andeaf3911c31and reimplement - Add generators support for objects and classes - Only classes can have static methods so restrict use of it Special thanks to @rvanvelzen and @kzc for reviewing this patch and providing constructive feedback over and over again.
This commit is contained in:
@@ -128,7 +128,7 @@ module.exports = function () {
|
||||
});
|
||||
|
||||
var generators_yield_def = UglifyJS.parse('function* fn() {\nyield remote();\}').body[0].body[0];
|
||||
ok.equal(generators_yield_def.body.operator, 'yield');
|
||||
ok.strictEqual(generators_yield_def.body.is_star, false);
|
||||
}
|
||||
|
||||
// Run standalone
|
||||
|
||||
Reference in New Issue
Block a user