diff --git a/src/org/mozilla/javascript/NativeIterator.java b/src/org/mozilla/javascript/NativeIterator.java
index <HASH>..<HASH> 100644
--- a/src/org/mozilla/javascript/NativeIterator.java
+++ b/src/org/mozilla/javascript/NativeIterator.java
@@ -44,6 +44,9 @@ public final class NativeIterator extends IdScriptableObject {
         NativeIterator iterator = new NativeIterator();
         iterator.exportAsJSClass(MAX_PROTOTYPE_ID, scope, sealed);
 
+        // Generator
+        NativeGenerator.init(scope, sealed);
+
         // StopIteration
         NativeObject obj = new StopIteration();
         obj.setPrototype(getObjectPrototype(scope));
Doh! Previous checking removing an unused local variable also removed a call
with important side effects.