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

Issue 7308106: Make traceur.runtime.StopIteration into a constructor function.

Can't Edit
Can't Publish+Mail
Start Review
Created:
12 years, 8 months ago by usrbincc
Modified:
12 years, 8 months ago
Reviewers:
CC:
traceur-compiler-reviews_googlegroups.com
Base URL:
https://code.google.com/p/traceur-compiler/@master
Visibility:
Public.

Description

Make traceur.runtime.StopIteration into a constructor function. This is a stub until I figure out how to proceed with this. The global StopIteration remains an object, but it can't be the browser-supplied one. Firefox's StopIteration singleton object: - Cannot implement the return semantics of harmony:generators. - It's impossible to create objects x such that x instanceof StopIteration Since a normal JS object cannot be the rhs of 'instanceof', a traceur-supplied StopIteration cannot be used that way. This breaks Task.js (unless we patch it).

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+24 lines, -32 lines) Patch
M src/codegeneration/generator/GeneratorTransformer.js View 2 chunks +2 lines, -2 lines 0 comments Download
M src/runtime/runtime.js View 2 chunks +22 lines, -30 lines 0 comments Download

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