Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(395)

Unified Diff: src/codegeneration/generator/GeneratorTransformer.js

Issue 7308106: Make traceur.runtime.StopIteration into a constructor function. Base URL: https://code.google.com/p/traceur-compiler/@master
Patch Set: Created 12 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | src/runtime/runtime.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/codegeneration/generator/GeneratorTransformer.js
diff --git a/src/codegeneration/generator/GeneratorTransformer.js b/src/codegeneration/generator/GeneratorTransformer.js
index 0a6838952ebc0ad62170907970bb3612b76fba68..1c94f023f2433dc9e0cb73880b06023f0515c8cf 100644
--- a/src/codegeneration/generator/GeneratorTransformer.js
+++ b/src/codegeneration/generator/GeneratorTransformer.js
@@ -250,7 +250,7 @@ export class GeneratorTransformer extends CPSTransformer {
return ${$CURRENT};
}
${$GSTATE} = ${ST_CLOSED};
- throw traceur.runtime.StopIteration;
+ throw new traceur.runtime.StopIteration();
}
},
@@ -275,7 +275,7 @@ export class GeneratorTransformer extends CPSTransformer {
return ${$CURRENT};
}
${$GSTATE} = ${ST_CLOSED};
- throw traceur.runtime.StopIteration;
+ throw new traceur.runtime.StopIteration();
}
},
« no previous file with comments | « no previous file | src/runtime/runtime.js » ('j') | no next file with comments »

Powered by Google App Engine
RSS Feeds Recent Issues | This issue
This is Rietveld f62528b