티스토리 수익 글 보기
티스토리 수익 글 보기
티스토리 수익 글 보기
Object.prototype
Function.prototype
%Symbol.hasInstance%()
apply()
bind()
call()
%GeneratorFunction.prototype%
%Symbol.toStringTag% =
“GeneratorFunction”
«constructor»
«callable»
Function
«constructor»
«callable»
%GeneratorFunction%
%IteratorPrototype%
%Symbol.iterator%() : object
%GeneratorPrototype%
%Symbol.toStringTag% = “Generator”
next() : object
return()
throw()
«callable»
function *g1() { yield; }
g1.prototype
g1()
[[Prototype]] of
Object.prototype is null
%GeneratorFunction.prototype%
is an ordinary object that serves
as the abstract constructor of
Generator instances.
%GeneratorFunction% and
%GeneratorFunction.prototype%
do not have global names.
%GeneratorFunction% is
essentially a subclass of
Function and is structured as
if it were declared as:
class extends Function { }
A typical generator
function. It is not a
constructor.
Each Generator Function has an associated
prototype that does not have a constructor
property. Hence a generator instance does not
expose access to its generator function.
But the prototype may be used to add additional
behavior to its generator function’s instances.
constructor
prototype
constructor
prototype
prototype
instanceof
instanceof