Re-implement %Generator% intrinsic as an object
authormike <mike@mikepennisi.com>
Mon, 6 Apr 2015 21:04:43 +0000 (14:04 -0700)
committerCommit bot <commit-bot@chromium.org>
Mon, 6 Apr 2015 21:04:51 +0000 (21:04 +0000)
commit3b624a179682a6b8351eea8cba28cf21e2afcdcd
tree2b0dbaf1164970a8fbd17b7d1ade3d1c4cc4067f
parent189b355a76ea5a26fba18e712f4849f0435e856b
Re-implement %Generator% intrinsic as an object

From ES6 25.2.3 ("Properties of the GeneratorFunction Prototype
Object"):

> The GeneratorFunction prototype object is an ordinary object. It is
> not a function object and does not have an [[ECMAScriptCode]] internal
> slot or any other of the internal slots listed in Table 27 or Table
> 56.

Introduce one assertion for the value's type and additional tests for its
properties. Remove an invalid assertion that fails as a result of this
fix.

BUG=v8:3991
LOG=N

Review URL: https://codereview.chromium.org/1062633002

Cr-Commit-Position: refs/heads/master@{#27603}
src/bootstrapper.cc
src/generator.js
test/mjsunit/builtins.js
test/mjsunit/es6/generators-runtime.js