15.3.2.1-10-6gs.js |
---
es5id: 15.3.2.1-10-6gs
description: >
Strict Mode - SyntaxError is thrown if a function using the
Function constructor has two identical parameters in (local)
strict mode
flags: [noStrict]
--- |
491 |
15.3.2.1-11-1-s.js |
---
es5id: 15.3.2.1-11-1-s
description: >
Duplicate seperate parameter name in Function constructor throws
SyntaxError in strict mode
flags: [noStrict]
--- |
411 |
15.3.2.1-11-1.js |
---
es5id: 15.3.2.1-11-1
description: >
Duplicate separate parameter name in Function constructor allowed
if body not strict
--- |
331 |
15.3.2.1-11-2-s-strict.js |
---
es5id: 15.3.2.1-11-2-s
description: >
Duplicate seperate parameter name in Function constructor called
from strict mode allowed if body not strict
flags: [onlyStrict]
--- |
391 |
15.3.2.1-11-3-s.js |
---
es5id: 15.3.2.1-11-3-s
description: >
Function constructor having a formal parameter named 'eval' throws
SyntaxError if function body is strict mode
flags: [noStrict]
--- |
428 |
15.3.2.1-11-3.js |
---
es5id: 15.3.2.1-11-3
description: >
Function constructor may have a formal parameter named 'eval' if
body is not strict mode
--- |
333 |
15.3.2.1-11-4-s-strict.js |
---
es5id: 15.3.2.1-11-4-s
description: >
Function constructor call from strict code with formal parameter
named 'eval' does not throws SyntaxError if function body is not
strict mode
flags: [onlyStrict]
--- |
426 |
15.3.2.1-11-5-s.js |
---
es5id: 15.3.2.1-11-5-s
description: >
Duplicate combined parameter name in Function constructor throws
SyntaxError in strict mode
flags: [noStrict]
--- |
408 |
15.3.2.1-11-5.js |
---
es5id: 15.3.2.1-11-5
description: >
Duplicate combined parameter name in Function constructor allowed
if body is not strict
--- |
331 |
15.3.2.1-11-6-s-strict.js |
---
es5id: 15.3.2.1-11-6-s
description: >
Duplicate combined parameter name allowed in Function constructor
called in strict mode if body not strict
flags: [onlyStrict]
--- |
388 |
15.3.2.1-11-7-s-strict.js |
---
es5id: 15.3.2.1-11-7-s
description: >
Function constructor call from strict code with formal parameter
named arguments does not throws SyntaxError if function body is
not strict mode
flags: [onlyStrict]
--- |
434 |
15.3.2.1-11-8-s-strict.js |
---
es5id: 15.3.2.1-11-8-s
description: >
Strict Mode - SyntaxError is not thrown if a function is created
using a Function constructor that has two identical parameters,
which are separated by a unique parameter name and there is no
explicit 'use strict' in the function constructor's body
flags: [onlyStrict]
--- |
566 |
15.3.2.1-11-9-s.js |
---
es5id: 15.3.2.1-11-9-s
description: >
Strict Mode - No SyntaxError is thrown if a function is created using
the Function constructor that has three identical parameters and
there is no explicit 'use strict' in the function constructor's
body
--- |
487 |
15.3.5-1gs-strict.js |
---
es5id: 15.3.5-1gs
description: >
StrictMode - error is thrown when reading the 'caller' property of
a function object
flags: [onlyStrict]
--- |
404 |
15.3.5-2gs-strict.js |
---
es5id: 15.3.5-2gs
description: >
StrictMode - error is thrown when reading the 'caller' property of
a function object
flags: [onlyStrict]
--- |
424 |
15.3.5.4_2-1gs-strict.js |
---
es5id: 15.3.5.4_2-1gs
description: >
Strict mode - checking access to strict function caller from
strict function (FunctionDeclaration defined within strict mode)
flags: [onlyStrict]
--- |
514 |
15.3.5.4_2-2gs.js |
---
es5id: 15.3.5.4_2-2gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (FunctionDeclaration includes strict directive
prologue)
flags: [noStrict]
--- |
566 |
15.3.5.4_2-3gs-strict.js |
---
es5id: 15.3.5.4_2-3gs
description: >
Strict mode - checking access to strict function caller from
strict function (FunctionExpression defined within strict mode)
flags: [onlyStrict]
--- |
519 |
15.3.5.4_2-4gs.js |
---
es5id: 15.3.5.4_2-4gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (FunctionExpression includes strict directive
prologue)
flags: [noStrict]
--- |
571 |
15.3.5.4_2-5gs-strict.js |
---
es5id: 15.3.5.4_2-5gs
description: >
Strict mode - checking access to strict function caller from
strict function (Anonymous FunctionExpression defined within
strict mode)
flags: [onlyStrict]
--- |
528 |
15.3.5.4_2-6gs.js |
---
es5id: 15.3.5.4_2-6gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (Anonymous FunctionExpression includes strict
directive prologue)
flags: [noStrict]
--- |
579 |
15.3.5.4_2-7gs-strict.js |
---
es5id: 15.3.5.4_2-7gs
description: >
Strict mode - checking access to non-strict function caller from
strict function (Function constructor defined within strict mode)
flags: [onlyStrict]
--- |
528 |
15.3.5.4_2-8gs.js |
---
es5id: 15.3.5.4_2-8gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (Function constructor includes strict
directive prologue)
flags: [noStrict]
--- |
570 |
15.3.5.4_2-9gs-strict.js |
---
es5id: 15.3.5.4_2-9gs
description: >
Strict mode - checking access to non-strict function caller from
strict function (New'ed Function constructor defined within strict
mode)
flags: [onlyStrict]
--- |
543 |
15.3.5.4_2-10gs.js |
---
es5id: 15.3.5.4_2-10gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (New'ed Function constructor includes strict
directive prologue)
flags: [noStrict]
--- |
582 |
15.3.5.4_2-11gs-strict.js |
---
es5id: 15.3.5.4_2-11gs
description: >
Strict mode - checking access to strict function caller from
strict function (eval used within strict mode)
flags: [onlyStrict]
--- |
482 |
15.3.5.4_2-12gs.js |
---
es5id: 15.3.5.4_2-12gs
description: >
Strict mode - checking access to non-strict function caller from
non-strict function (eval includes strict directive prologue)
flags: [noStrict]
features: [caller]
--- |
477 |
15.3.5.4_2-13gs-strict.js |
---
es5id: 15.3.5.4_2-13gs
description: >
Strict mode - checking access to non-strict function caller from
strict function (indirect eval used within strict mode)
flags: [onlyStrict]
--- |
518 |
15.3.5.4_2-14gs.js |
---
es5id: 15.3.5.4_2-14gs
description: >
Strict mode - checking access to non-strict function caller from
non-strict function (indirect eval includes strict directive
prologue)
flags: [noStrict]
features: [caller]
--- |
513 |
15.3.5.4_2-15gs-strict.js |
---
es5id: 15.3.5.4_2-15gs
description: >
Strict mode - checking access to strict function caller from
strict function (New'ed object from FunctionDeclaration defined
within strict mode)
flags: [onlyStrict]
--- |
542 |
15.3.5.4_2-16gs.js |
---
es5id: 15.3.5.4_2-16gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (New'ed object from FunctionDeclaration
includes strict directive prologue)
flags: [noStrict]
--- |
590 |
15.3.5.4_2-17gs-strict.js |
---
es5id: 15.3.5.4_2-17gs
description: >
Strict mode - checking access to strict function caller from
strict function (New'ed object from FunctionExpression defined
within strict mode)
flags: [onlyStrict]
--- |
547 |
15.3.5.4_2-18gs.js |
---
es5id: 15.3.5.4_2-18gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (New'ed object from FunctionExpression
includes strict directive prologue)
flags: [noStrict]
--- |
595 |
15.3.5.4_2-19gs-strict.js |
---
es5id: 15.3.5.4_2-19gs
description: >
Strict mode - checking access to strict function caller from
strict function (New'ed object from Anonymous FunctionExpression
defined within strict mode)
flags: [onlyStrict]
--- |
559 |
15.3.5.4_2-20gs.js |
---
es5id: 15.3.5.4_2-20gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (New'ed object from Anonymous
FunctionExpression includes strict directive prologue)
flags: [noStrict]
--- |
610 |
15.3.5.4_2-21gs-strict.js |
---
es5id: 15.3.5.4_2-21gs
description: >
Strict mode - checking access to strict function caller from
strict function (FunctionDeclaration defined within a
FunctionDeclaration inside strict mode)
flags: [onlyStrict]
--- |
580 |
15.3.5.4_2-22gs-strict.js |
---
es5id: 15.3.5.4_2-22gs
description: >
Strict mode - checking access to strict function caller from
strict function (FunctionExpression defined within a
FunctionDeclaration inside strict mode)
flags: [onlyStrict]
--- |
585 |
15.3.5.4_2-23gs-strict.js |
---
es5id: 15.3.5.4_2-23gs
description: >
Strict mode - checking access to strict function caller from
strict function (Anonymous FunctionExpression defined within a
FunctionDeclaration inside strict mode)
flags: [onlyStrict]
--- |
585 |
15.3.5.4_2-24gs-strict.js |
---
es5id: 15.3.5.4_2-24gs
description: >
Strict mode - checking access to strict function caller from
strict function (FunctionDeclaration defined within a
FunctionExpression inside strict mode)
flags: [onlyStrict]
--- |
586 |
15.3.5.4_2-25gs-strict.js |
---
es5id: 15.3.5.4_2-25gs
description: >
Strict mode - checking access to strict function caller from
strict function (FunctionExpression defined within a
FunctionExpression inside strict mode)
flags: [onlyStrict]
--- |
590 |
15.3.5.4_2-26gs-strict.js |
---
es5id: 15.3.5.4_2-26gs
description: >
Strict mode - checking access to strict function caller from
strict function (Anonymous FunctionExpression defined within a
FunctionExpression inside strict mode)
flags: [onlyStrict]
--- |
590 |
15.3.5.4_2-27gs-strict.js |
---
es5id: 15.3.5.4_2-27gs
description: >
Strict mode - checking access to strict function caller from
strict function (FunctionDeclaration defined within an Anonymous
FunctionExpression inside strict mode)
flags: [onlyStrict]
--- |
595 |
15.3.5.4_2-28gs-strict.js |
---
es5id: 15.3.5.4_2-28gs
description: >
Strict mode - checking access to strict function caller from
strict function (FunctionExpression defined within an Anonymous
FunctionExpression inside strict mode)
flags: [onlyStrict]
--- |
601 |
15.3.5.4_2-29gs-strict.js |
---
es5id: 15.3.5.4_2-29gs
description: >
Strict mode - checking access to strict function caller from
strict function (Anonymous FunctionExpression defined within an
Anonymous FunctionExpression inside strict mode)
flags: [onlyStrict]
--- |
598 |
15.3.5.4_2-30gs.js |
---
es5id: 15.3.5.4_2-30gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (FunctionDeclaration defined within a
FunctionDeclaration with a strict directive prologue)
flags: [noStrict]
--- |
635 |
15.3.5.4_2-31gs.js |
---
es5id: 15.3.5.4_2-31gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (FunctionExpression defined within a
FunctionDeclaration with a strict directive prologue)
flags: [noStrict]
--- |
639 |
15.3.5.4_2-32gs.js |
---
es5id: 15.3.5.4_2-32gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (Anonymous FunctionExpression defined within a
FunctionDeclaration with a strict directive prologue)
flags: [noStrict]
--- |
639 |
15.3.5.4_2-33gs.js |
---
es5id: 15.3.5.4_2-33gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (FunctionDeclaration defined within a
FunctionExpression with a strict directive prologue)
flags: [noStrict]
--- |
640 |
15.3.5.4_2-34gs.js |
---
es5id: 15.3.5.4_2-34gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (FunctionExpression defined within a
FunctionExpression with a strict directive prologue)
flags: [noStrict]
--- |
644 |
15.3.5.4_2-35gs.js |
---
es5id: 15.3.5.4_2-35gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (Anonymous FunctionExpression defined within a
FunctionExpression with a strict directive prologue)
flags: [noStrict]
--- |
644 |
15.3.5.4_2-36gs.js |
---
es5id: 15.3.5.4_2-36gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (FunctionDeclaration defined within an
Anonymous FunctionExpression with a strict directive prologue)
flags: [noStrict]
--- |
652 |
15.3.5.4_2-37gs.js |
---
es5id: 15.3.5.4_2-37gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (FunctionExpression defined within an
Anonymous FunctionExpression with a strict directive prologue)
flags: [noStrict]
--- |
656 |
15.3.5.4_2-38gs.js |
---
es5id: 15.3.5.4_2-38gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (Anonymous FunctionExpression defined within
an Anonymous FunctionExpression with a strict directive prologue)
flags: [noStrict]
--- |
654 |
15.3.5.4_2-39gs.js |
---
es5id: 15.3.5.4_2-39gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (FunctionDeclaration with a strict directive
prologue defined within a FunctionDeclaration)
flags: [noStrict]
--- |
643 |
15.3.5.4_2-40gs.js |
---
es5id: 15.3.5.4_2-40gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (FunctionExpression with a strict directive
prologue defined within a FunctionDeclaration)
flags: [noStrict]
--- |
648 |
15.3.5.4_2-41gs.js |
---
es5id: 15.3.5.4_2-41gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (Anonymous FunctionExpression with a strict
directive prologue defined within a FunctionDeclaration)
flags: [noStrict]
--- |
648 |
15.3.5.4_2-42gs.js |
---
es5id: 15.3.5.4_2-42gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (FunctionDeclaration with a strict directive
prologue defined within a FunctionExpression)
flags: [noStrict]
--- |
648 |
15.3.5.4_2-43gs.js |
---
es5id: 15.3.5.4_2-43gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (FunctionExpression with a strict directive
prologue defined within a FunctionExpression)
flags: [noStrict]
--- |
653 |
15.3.5.4_2-44gs.js |
---
es5id: 15.3.5.4_2-44gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (Anonymous FunctionExpression with a strict
directive prologue defined within a FunctionExpression)
flags: [noStrict]
--- |
653 |
15.3.5.4_2-45gs.js |
---
es5id: 15.3.5.4_2-45gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (FunctionDeclaration with a strict directive
prologue defined within an Anonymous FunctionExpression)
flags: [noStrict]
--- |
660 |
15.3.5.4_2-46gs.js |
---
es5id: 15.3.5.4_2-46gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (FunctionExpression with a strict directive
prologue defined within an Anonymous FunctionExpression)
flags: [noStrict]
--- |
665 |
15.3.5.4_2-47gs.js |
---
es5id: 15.3.5.4_2-47gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (Anonymous FunctionExpression with a strict
directive prologue defined within an Anonymous FunctionExpression)
flags: [noStrict]
--- |
664 |
15.3.5.4_2-48gs-strict.js |
---
es5id: 15.3.5.4_2-48gs
description: >
Strict mode - checking access to strict function caller from
strict function (Literal getter defined within strict mode)
flags: [onlyStrict]
--- |
527 |
15.3.5.4_2-49gs.js |
---
es5id: 15.3.5.4_2-49gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (Literal getter includes strict directive
prologue)
flags: [noStrict]
--- |
581 |
15.3.5.4_2-50gs-strict.js |
---
es5id: 15.3.5.4_2-50gs
description: >
Strict mode - checking access to strict function caller from
strict function (Literal setter defined within strict mode)
flags: [onlyStrict]
--- |
536 |
15.3.5.4_2-51gs.js |
---
es5id: 15.3.5.4_2-51gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (Literal setter includes strict directive
prologue)
flags: [noStrict]
--- |
590 |
15.3.5.4_2-52gs-strict.js |
---
es5id: 15.3.5.4_2-52gs
description: >
Strict mode - checking access to strict function caller from
strict function (Injected getter defined within strict mode)
flags: [onlyStrict]
--- |
572 |
15.3.5.4_2-53gs.js |
---
es5id: 15.3.5.4_2-53gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (Injected getter includes strict directive
prologue)
flags: [noStrict]
--- |
626 |
15.3.5.4_2-54gs-strict.js |
---
es5id: 15.3.5.4_2-54gs
description: >
Strict mode - checking access to strict function caller from
strict function (Injected setter defined within strict mode)
flags: [onlyStrict]
--- |
581 |
15.3.5.4_2-55gs.js |
---
es5id: 15.3.5.4_2-55gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (Injected setter includes strict directive
prologue)
flags: [noStrict]
--- |
636 |
15.3.5.4_2-56gs.js |
---
es5id: 15.3.5.4_2-56gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (strict function declaration called by
non-strict function declaration)
flags: [noStrict]
--- |
619 |
15.3.5.4_2-57gs.js |
---
es5id: 15.3.5.4_2-57gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (strict function declaration called by
non-strict eval)
flags: [noStrict]
--- |
576 |
15.3.5.4_2-58gs.js |
---
es5id: 15.3.5.4_2-58gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (strict function declaration called by
non-strict Function constructor)
flags: [noStrict]
--- |
605 |
15.3.5.4_2-59gs.js |
---
es5id: 15.3.5.4_2-59gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (strict function declaration called by
non-strict new'ed Function constructor)
flags: [noStrict]
--- |
616 |
15.3.5.4_2-60gs.js |
---
es5id: 15.3.5.4_2-60gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (strict function declaration called by
Function.prototype.apply())
flags: [noStrict]
--- |
584 |
15.3.5.4_2-61gs.js |
---
es5id: 15.3.5.4_2-61gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (strict function declaration called by
Function.prototype.apply(null))
flags: [noStrict]
--- |
592 |
15.3.5.4_2-62gs.js |
---
es5id: 15.3.5.4_2-62gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (strict function declaration called by
Function.prototype.apply(undefined))
flags: [noStrict]
--- |
602 |
15.3.5.4_2-63gs.js |
---
es5id: 15.3.5.4_2-63gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (strict function declaration called by
Function.prototype.apply(someObject))
flags: [noStrict]
--- |
607 |
15.3.5.4_2-64gs.js |
---
es5id: 15.3.5.4_2-64gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (strict function declaration called by
Function.prototype.apply(globalObject))
flags: [noStrict]
--- |
622 |
15.3.5.4_2-65gs.js |
---
es5id: 15.3.5.4_2-65gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (strict function declaration called by
Function.prototype.call())
flags: [noStrict]
--- |
582 |
15.3.5.4_2-66gs.js |
---
es5id: 15.3.5.4_2-66gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (strict function declaration called by
Function.prototype.call(null))
flags: [noStrict]
--- |
590 |
15.3.5.4_2-67gs.js |
---
es5id: 15.3.5.4_2-67gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (strict function declaration called by
Function.prototype.call(undefined))
flags: [noStrict]
--- |
600 |
15.3.5.4_2-68gs.js |
---
es5id: 15.3.5.4_2-68gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (strict function declaration called by
Function.prototype.call(someObject))
flags: [noStrict]
--- |
605 |
15.3.5.4_2-69gs.js |
---
es5id: 15.3.5.4_2-69gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (strict function declaration called by
Function.prototype.call(globalObject))
flags: [noStrict]
--- |
618 |
15.3.5.4_2-70gs.js |
---
es5id: 15.3.5.4_2-70gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (strict function declaration called by
Function.prototype.bind()())
flags: [noStrict]
--- |
586 |
15.3.5.4_2-71gs.js |
---
es5id: 15.3.5.4_2-71gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (strict function declaration called by
Function.prototype.bind(null)())
flags: [noStrict]
--- |
594 |
15.3.5.4_2-72gs.js |
---
es5id: 15.3.5.4_2-72gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (strict function declaration called by
Function.prototype.bind(undefined)())
flags: [noStrict]
--- |
604 |
15.3.5.4_2-73gs.js |
---
es5id: 15.3.5.4_2-73gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (strict function declaration called by
Function.prototype.bind(someObject)())
flags: [noStrict]
--- |
609 |
15.3.5.4_2-74gs.js |
---
es5id: 15.3.5.4_2-74gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (strict function declaration called by
Function.prototype.bind(globalObject)())
flags: [noStrict]
--- |
624 |
15.3.5.4_2-75gs.js |
---
es5id: 15.3.5.4_2-75gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (non-strict function declaration called by
strict function declaration)
flags: [noStrict]
features: [caller]
--- |
558 |
15.3.5.4_2-76gs.js |
---
es5id: 15.3.5.4_2-76gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (non-strict function declaration called by
strict eval)
flags: [noStrict]
features: [caller]
--- |
551 |
15.3.5.4_2-77gs.js |
---
es5id: 15.3.5.4_2-77gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (non-strict function declaration called by
strict Function constructor)
flags: [noStrict]
features: [caller]
--- |
573 |
15.3.5.4_2-78gs.js |
---
es5id: 15.3.5.4_2-78gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (non-strict function declaration called by
strict new'ed Function constructor)
flags: [noStrict]
features: [caller]
--- |
591 |
15.3.5.4_2-79gs.js |
---
es5id: 15.3.5.4_2-79gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (non-strict function declaration called by
strict Function.prototype.apply())
flags: [noStrict]
features: [caller]
--- |
563 |
15.3.5.4_2-80gs.js |
---
es5id: 15.3.5.4_2-80gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (non-strict function declaration called by
strict Function.prototype.apply(null))
flags: [noStrict]
features: [caller]
--- |
571 |
15.3.5.4_2-81gs.js |
---
es5id: 15.3.5.4_2-81gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (non-strict function declaration called by
strict Function.prototype.apply(undefined))
flags: [noStrict]
features: [caller]
--- |
581 |
15.3.5.4_2-82gs.js |
---
es5id: 15.3.5.4_2-82gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (non-strict function declaration called by
strict Function.prototype.apply(someObject))
flags: [noStrict]
features: [caller]
--- |
586 |
15.3.5.4_2-83gs.js |
---
es5id: 15.3.5.4_2-83gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (non-strict function declaration called by
strict Function.prototype.apply(globalObject))
flags: [noStrict]
features: [caller]
--- |
601 |
15.3.5.4_2-84gs.js |
---
es5id: 15.3.5.4_2-84gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (non-strict function declaration called by
strict Function.prototype.call())
flags: [noStrict]
features: [caller]
--- |
561 |
15.3.5.4_2-85gs.js |
---
es5id: 15.3.5.4_2-85gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (non-strict function declaration called by
strict Function.prototype.call(null))
flags: [noStrict]
features: [caller]
--- |
569 |
15.3.5.4_2-86gs.js |
---
es5id: 15.3.5.4_2-86gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (non-strict function declaration called by
strict Function.prototype.call(undefined))
flags: [noStrict]
features: [caller]
--- |
579 |
15.3.5.4_2-87gs.js |
---
es5id: 15.3.5.4_2-87gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (non-strict function declaration called by
strict Function.prototype.call(someObject))
flags: [noStrict]
features: [caller]
--- |
584 |
15.3.5.4_2-88gs.js |
---
es5id: 15.3.5.4_2-88gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (non-strict function declaration called by
strict Function.prototype.call(globalObject))
flags: [noStrict]
features: [caller]
--- |
599 |
15.3.5.4_2-89gs.js |
---
es5id: 15.3.5.4_2-89gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (non-strict function declaration called by
strict Function.prototype.bind()())
flags: [noStrict]
features: [caller]
--- |
565 |
15.3.5.4_2-90gs.js |
---
es5id: 15.3.5.4_2-90gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (non-strict function declaration called by
strict Function.prototype.bind(null)())
flags: [noStrict]
features: [caller]
--- |
573 |
15.3.5.4_2-91gs.js |
---
es5id: 15.3.5.4_2-91gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (non-strict function declaration called by
strict Function.prototype.bind(undefined)())
flags: [noStrict]
features: [caller]
--- |
583 |
15.3.5.4_2-92gs.js |
---
es5id: 15.3.5.4_2-92gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (non-strict function declaration called by
strict Function.prototype.bind(someObject)())
flags: [noStrict]
features: [caller]
--- |
588 |
15.3.5.4_2-93gs.js |
---
es5id: 15.3.5.4_2-93gs
description: >
Strict mode - checking access to strict function caller from
non-strict function (non-strict function declaration called by
strict Function.prototype.bind(globalObject)())
flags: [noStrict]
features: [caller]
--- |
603 |
15.3.5.4_2-94gs.js |
---
es5id: 15.3.5.4_2-94gs
description: >
Strict mode - checking access to strict function caller from
non-strict function expression (FunctionDeclaration includes
strict directive prologue)
flags: [noStrict]
--- |
584 |
15.3.5.4_2-95gs.js |
---
es5id: 15.3.5.4_2-95gs
description: >
Strict mode - checking access to strict function caller from
non-strict, constructor-based function (FunctionDeclaration
includes strict directive prologue)
flags: [noStrict]
--- |
588 |
15.3.5.4_2-96gs.js |
---
es5id: 15.3.5.4_2-96gs
description: >
Strict mode - checking access to strict function caller from
non-strict property (FunctionDeclaration includes strict directive
prologue)
flags: [noStrict]
--- |
643 |
15.3.5.4_2-97gs.js |
---
es5id: 15.3.5.4_2-97gs
description: >
Strict mode - checking access to strict function caller from bound
non-strict function (FunctionDeclaration includes strict directive
prologue)
flags: [noStrict]
--- |
638 |
browser.js |
|
0 |
call-bind-this-realm-undef.js |
---
esid: sec-ecmascript-function-objects-call-thisargument-argumentslist
description: The "this" value is set to the global This value
info: |
[...]
6. Perform OrdinaryCallBindThis(F, calleeContext, thisArgument).
[...]
9.2.1.2OrdinaryCallBindThis ( F, calleeContext, thisArgument )#
[...]
5. If thisMode is strict, let thisValue be thisArgument.
6. Else,
a. If thisArgument is null or undefined, then
i. Let globalEnv be calleeRealm.[[GlobalEnv]].
ii. Let globalEnvRec be globalEnv's EnvironmentRecord.
iii. Let thisValue be globalEnvRec.[[GlobalThisValue]].
[...]
features: [cross-realm]
--- |
1081 |
call-bind-this-realm-value.js |
---
esid: sec-ecmascript-function-objects-call-thisargument-argumentslist
description: The "this" value is wrapped in an object using the callee realm
info: |
[...]
6. Perform OrdinaryCallBindThis(F, calleeContext, thisArgument).
[...]
9.2.1.2OrdinaryCallBindThis ( F, calleeContext, thisArgument )#
[...]
5. If thisMode is strict, let thisValue be thisArgument.
6. Else,
a. If thisArgument is null or undefined, then
[...]
b. Else,
i. Let thisValue be ! ToObject(thisArgument).
ii. NOTE ToObject produces wrapper objects using calleeRealm.
[...]
features: [cross-realm]
--- |
1536 |
instance-name.js |
---
es6id: 19.2.1.1
description: Assignment of function `name` attribute
info: |
[...]
3. Return CreateDynamicFunction(C, NewTarget, "normal", args).
ES6 19.2.1.1.1
RuntimeSemantics: CreateDynamicFunction(constructor, newTarget, kind, args)
[...]
29. Perform SetFunctionName(F, "anonymous").
includes: [propertyHelper.js]
--- |
690 |
internals |
|
|
is-a-constructor.js |
---
esid: sec-ecmascript-standard-built-in-objects
description: >
The Function constructor implements [[Construct]]
info: |
IsConstructor ( argument )
The abstract operation IsConstructor takes argument argument (an ECMAScript language value).
It determines if argument is a function object with a [[Construct]] internal method.
It performs the following steps when called:
If Type(argument) is not Object, return false.
If argument has a [[Construct]] internal method, return true.
Return false.
includes: [isConstructor.js]
features: [Reflect.construct]
--- |
846 |
length |
|
|
private-identifiers-not-empty.js |
---
esid: sec-createdynamicfunction
description: CreateDynamicFunction throws SyntaxError if there is some invalid private identifier on its body
info: |
CreateDynamicFunction(constructor, newTarget, kind, args)
...
29. Let privateIdentifiers be an empty List.
30. If AllPrivateIdentifiersValid of body with the argument privateIdentifiers is false, throw a SyntaxError exception.
31. If AllPrivateIdentifiersValid of parameters with the argument privateIdentifiers is false, throw a SyntaxError exception.
...
features: [class-fields-private]
--- |
916 |
prop-desc.js |
---
esid: sec-constructor-properties-of-the-global-object-function
description: Property descriptor for Function
info: |
Every other data property described in clauses 18 through 26 and in Annex B.2
has the attributes { [[Writable]]: true, [[Enumerable]]: false,
[[Configurable]]: true } unless otherwise specified.
includes: [propertyHelper.js]
--- |
617 |
property-order.js |
---
esid: sec-createbuiltinfunction
description: Function constructor property order
info: |
Set order: "length", "name", ...
--- |
569 |
proto-from-ctor-realm-prototype.js |
---
esid: sec-createdynamicfunction
description: >
While default [[Prototype]] value derives from realm of the newTarget,
"prototype" object inherits from %Object.prototype% of constructor's realm.
info: |
Function ( p1, p2, … , pn, body )
[...]
3. Return ? CreateDynamicFunction(C, NewTarget, normal, args).
CreateDynamicFunction ( constructor, newTarget, kind, args )
[...]
18. Let proto be ? GetPrototypeFromConstructor(newTarget, fallbackProto).
19. Let realmF be the current Realm Record.
20. Let scope be realmF.[[GlobalEnv]].
21. Let F be ! OrdinaryFunctionCreate(proto, parameters, body, non-lexical-this, scope).
[...]
25. Else if kind is normal, perform MakeConstructor(F).
[...]
30. Return F.
MakeConstructor ( F [ , writablePrototype [ , prototype ] ] )
[...]
7. If prototype is not present, then
a. Set prototype to OrdinaryObjectCreate(%Object.prototype%).
[...]
8. Perform ! DefinePropertyOrThrow(F, "prototype", PropertyDescriptor {[[Value]]: prototype,
[[Writable]]: writablePrototype, [[Enumerable]]: false, [[Configurable]]: false }).
features: [cross-realm, Reflect]
--- |
1774 |
proto-from-ctor-realm.js |
---
esid: sec-function-p1-p2-pn-body
description: Default [[Prototype]] value derived from realm of the newTarget
info: |
[...]
5. Return ? CreateDynamicFunction(C, NewTarget, "normal", args).
19.2.1.1.1 Runtime Semantics: CreateDynamicFunction
[...]
2. If kind is "normal", then
[...]
c. Let fallbackProto be "%FunctionPrototype%".
[...]
22. Let proto be ? GetPrototypeFromConstructor(newTarget, fallbackProto).
[...]
9.1.14 GetPrototypeFromConstructor
[...]
3. Let proto be ? Get(constructor, "prototype").
4. If Type(proto) is not Object, then
a. Let realm be ? GetFunctionRealm(constructor).
b. Let proto be realm's intrinsic object named intrinsicDefaultProto.
[...]
features: [cross-realm, Reflect]
--- |
1163 |
prototype |
|
|
S10.1.1_A1_T3.js |
---
info: |
Program functions are defined in source text by a FunctionDeclaration or created dynamically either
by using a FunctionExpression or by using the built-in Function object as a constructor
es5id: 10.1.1_A1_T3
description: >
Creating function dynamically by using the built-in Function
object as a constructor
--- |
674 |
S15.3.1_A1_T1.js |
---
info: |
The function call Function(…) is equivalent to the object creation expression
new Function(…) with the same arguments.
es5id: 15.3.1_A1_T1
description: Create simple functions and check returned values
--- |
890 |
S15.3.2.1_A1_T1.js |
---
info: |
When the Function constructor is called with one argument then body be that argument and the following steps are taken:
i) Call ToString(body)
ii) If P is not parsable as a FormalParameterListopt then throw a SyntaxError exception
iii) If body is not parsable as FunctionBody then throw a SyntaxError exception
iv) Create a new Function object as specified in 13.2 with parameters specified by parsing P as a FormalParameterListopt and body specified by parsing body as a FunctionBody.
Pass in a scope chain consisting of the global object as the Scope parameter
v) Return Result(iv)
es5id: 15.3.2.1_A1_T1
description: "The body of the function is \"{toString:function(){throw 7;}}\""
--- |
1231 |
S15.3.2.1_A1_T2.js |
---
info: |
When the Function constructor is called with one argument then body be that argument and the following steps are taken:
i) Call ToString(body)
ii) If P is not parsable as a FormalParameterListopt then throw a SyntaxError exception
iii) If body is not parsable as FunctionBody then throw a SyntaxError exception
iv) Create a new Function object as specified in 13.2 with parameters specified by parsing P as a FormalParameterListopt and body specified by parsing body as a FunctionBody.
Pass in a scope chain consisting of the global object as the Scope parameter
v) Return Result(iv)
es5id: 15.3.2.1_A1_T2
description: >
The body of the function is "{toString:function(){return "return
1;";}}"
--- |
1253 |
S15.3.2.1_A1_T3.js |
---
info: |
When the Function constructor is called with one argument then body be that argument and the following steps are taken:
i) Call ToString(body)
ii) If P is not parsable as a FormalParameterListopt then throw a SyntaxError exception
iii) If body is not parsable as FunctionBody then throw a SyntaxError exception
iv) Create a new Function object as specified in 13.2 with parameters specified by parsing P as a FormalParameterListopt and body specified by parsing body as a FunctionBody.
Pass in a scope chain consisting of the global object as the Scope parameter
v) Return Result(iv)
es5id: 15.3.2.1_A1_T3
description: Value of the function constructor argument is 1
--- |
1157 |
S15.3.2.1_A1_T4.js |
---
info: |
When the Function constructor is called with one argument then body be that argument and the following steps are taken:
i) Call ToString(body)
ii) If P is not parsable as a FormalParameterListopt then throw a SyntaxError exception
iii) If body is not parsable as FunctionBody then throw a SyntaxError exception
iv) Create a new Function object as specified in 13.2 with parameters specified by parsing P as a FormalParameterListopt and body specified by parsing body as a FunctionBody.
Pass in a scope chain consisting of the global object as the Scope parameter
v) Return Result(iv)
es5id: 15.3.2.1_A1_T4
description: >
Value of the function constructor argument is x, where x is
specified with "undefined"
--- |
1214 |
S15.3.2.1_A1_T5.js |
---
info: |
When the Function constructor is called with one argument then body be that argument and the following steps are taken:
i) Call ToString(body)
ii) If P is not parsable as a FormalParameterListopt then throw a SyntaxError exception
iii) If body is not parsable as FunctionBody then throw a SyntaxError exception
iv) Create a new Function object as specified in 13.2 with parameters specified by parsing P as a FormalParameterListopt and body specified by parsing body as a FunctionBody.
Pass in a scope chain consisting of the global object as the Scope parameter
v) Return Result(iv)
es5id: 15.3.2.1_A1_T5
description: >
Value of the function constructor argument is "Object("return
\'A\'")"
--- |
1230 |
S15.3.2.1_A1_T6.js |
---
info: |
When the Function constructor is called with one argument then body be that argument and the following steps are taken:
i) Call ToString(body)
ii) If P is not parsable as a FormalParameterListopt then throw a SyntaxError exception
iii) If body is not parsable as FunctionBody then throw a SyntaxError exception
iv) Create a new Function object as specified in 13.2 with parameters specified by parsing P as a FormalParameterListopt and body specified by parsing body as a FunctionBody.
Pass in a scope chain consisting of the global object as the Scope parameter
v) Return Result(iv)
es5id: 15.3.2.1_A1_T6
description: >
Value of the function constructor argument is the string "return
true;"
--- |
1182 |
S15.3.2.1_A1_T7.js |
---
info: |
When the Function constructor is called with one argument then body be that argument and the following steps are taken:
i) Call ToString(body)
ii) If P is not parsable as a FormalParameterListopt then throw a SyntaxError exception
iii) If body is not parsable as FunctionBody then throw a SyntaxError exception
iv) Create a new Function object as specified in 13.2 with parameters specified by parsing P as a FormalParameterListopt and body specified by parsing body as a FunctionBody.
Pass in a scope chain consisting of the global object as the Scope parameter
v) Return Result(iv)
es5id: 15.3.2.1_A1_T7
description: Value of the function constructor argument is "Object(1)"
--- |
1197 |
S15.3.2.1_A1_T8.js |
---
info: |
When the Function constructor is called with one argument then body be that argument and the following steps are taken:
i) Call ToString(body)
ii) If P is not parsable as a FormalParameterListopt then throw a SyntaxError exception
iii) If body is not parsable as FunctionBody then throw a SyntaxError exception
iv) Create a new Function object as specified in 13.2 with parameters specified by parsing P as a FormalParameterListopt and body specified by parsing body as a FunctionBody.
Pass in a scope chain consisting of the global object as the Scope parameter
v) Return Result(iv)
es5id: 15.3.2.1_A1_T8
description: Value of the function constructor argument is "var 1=1;"
--- |
1190 |
S15.3.2.1_A1_T9.js |
---
info: |
When the Function constructor is called with one argument then body be that argument and the following steps are taken:
i) Call ToString(body)
ii) If P is not parsable as a FormalParameterListopt then throw a SyntaxError exception
iii) If body is not parsable as FunctionBody then throw a SyntaxError exception
iv) Create a new Function object as specified in 13.2 with parameters specified by parsing P as a FormalParameterListopt and body specified by parsing body as a FunctionBody.
Pass in a scope chain consisting of the global object as the Scope parameter
v) Return Result(iv)
es5id: 15.3.2.1_A1_T9
description: >
Value of the function constructor argument is "return
arguments[0];"
--- |
1112 |
S15.3.2.1_A1_T10.js |
---
info: |
When the Function constructor is called with one argument then body be that argument and the following steps are taken:
i) Call ToString(body)
ii) If P is not parsable as a FormalParameterListopt then throw a SyntaxError exception
iii) If body is not parsable as FunctionBody then throw a SyntaxError exception
iv) Create a new Function object as specified in 13.2 with parameters specified by parsing P as a FormalParameterListopt and body specified by parsing body as a FunctionBody.
Pass in a scope chain consisting of the global object as the Scope parameter
v) Return Result(iv)
es5id: 15.3.2.1_A1_T10
description: Value of the function constructor argument is "null"
--- |
1165 |
S15.3.2.1_A1_T11.js |
---
info: |
When the Function constructor is called with one argument then body be that argument and the following steps are taken:
i) Call ToString(body)
ii) If P is not parsable as a FormalParameterListopt then throw a SyntaxError exception
iii) If body is not parsable as FunctionBody then throw a SyntaxError exception
iv) Create a new Function object as specified in 13.2 with parameters specified by parsing P as a FormalParameterListopt and body specified by parsing body as a FunctionBody.
Pass in a scope chain consisting of the global object as the Scope parameter
v) Return Result(iv)
es5id: 15.3.2.1_A1_T11
description: Value of the function constructor argument is "undefined"
--- |
1176 |
S15.3.2.1_A1_T12.js |
---
info: |
When the Function constructor is called with one argument then body be that argument and the following steps are taken:
i) Call ToString(body)
ii) If P is not parsable as a FormalParameterListopt then throw a SyntaxError exception
iii) If body is not parsable as FunctionBody then throw a SyntaxError exception
iv) Create a new Function object as specified in 13.2 with parameters specified by parsing P as a FormalParameterListopt and body specified by parsing body as a FunctionBody.
Pass in a scope chain consisting of the global object as the Scope parameter
v) Return Result(iv)
es5id: 15.3.2.1_A1_T12
description: Value of the function constructor argument is "void 0"
--- |
1170 |
S15.3.2.1_A1_T13.js |
---
info: |
When the Function constructor is called with one argument then body be that argument and the following steps are taken:
i) Call ToString(body)
ii) If P is not parsable as a FormalParameterListopt then throw a SyntaxError exception
iii) If body is not parsable as FunctionBody then throw a SyntaxError exception
iv) Create a new Function object as specified in 13.2 with parameters specified by parsing P as a FormalParameterListopt and body specified by parsing body as a FunctionBody.
Pass in a scope chain consisting of the global object as the Scope parameter
v) Return Result(iv)
es5id: 15.3.2.1_A1_T13
description: Value of the function constructor argument is "{}"
--- |
1112 |
S15.3.2.1_A2_T1.js |
---
info: |
It is permissible but not necessary to have one argument for each formal
parameter to be specified
es5id: 15.3.2.1_A2_T1
description: >
Values of the function constructor arguments are "arg1", "arg2",
"arg3", "return arg1+arg2+arg3;"
--- |
731 |
S15.3.2.1_A2_T2.js |
---
info: |
It is permissible but not necessary to have one argument for each formal
parameter to be specified
es5id: 15.3.2.1_A2_T2
description: >
Values of the function constructor arguments are "arg1, arg2",
"arg3", "return arg1+arg2+arg3;"
--- |
747 |
S15.3.2.1_A2_T3.js |
---
info: |
It is permissible but not necessary to have one argument for each formal
parameter to be specified
es5id: 15.3.2.1_A2_T3
description: >
Values of the function constructor arguments are "arg1, arg2,
arg3", "return arg1+arg2+arg3;"
--- |
743 |
S15.3.2.1_A2_T4.js |
---
info: |
It is permissible but not necessary to have one argument for each formal
parameter to be specified
es5id: 15.3.2.1_A2_T4
description: >
Values of the function constructor arguments are "return"-s of
various results
--- |
818 |
S15.3.2.1_A2_T5.js |
---
info: |
It is permissible but not necessary to have one argument for each formal
parameter to be specified
es5id: 15.3.2.1_A2_T5
description: >
Values of the function constructor arguments are "return"-s of
various results and a concotenation of strings
--- |
821 |
S15.3.2.1_A2_T6.js |
---
info: |
It is permissible but not necessary to have one argument for each formal
parameter to be specified
es5id: 15.3.2.1_A2_T6
description: >
Values of the function constructor arguments are "return"-s of
various results and a concotenation of strings
--- |
878 |
S15.3.2.1_A3_T1.js |
---
info: |
When the Function constructor is called with arguments p, body the following steps are taken:
i) Let Result(i) be the first argument
ii) Let P be ToString(Result(i))
iii) Call ToString(body)
iv) If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception
v) If body is not parsable as FunctionBody then throw a SyntaxError exception
vi) Create a new Function object as specified in 13.2 with parameters specified by parsing P as a FormalParameterListopt and body specified by parsing body as a FunctionBody
Pass in a scope chain consisting of the global object as the Scope parameter
vii) Return Result(vi)
es5id: 15.3.2.1_A3_T1
description: >
Values of the function constructor arguments are
"{toString:function(){throw 1;}}" and "{toString:function(){throw
'body';}}"
--- |
1302 |
S15.3.2.1_A3_T2.js |
---
info: |
When the Function constructor is called with arguments p, body the following steps are taken:
i) Let Result(i) be the first argument
ii) Let P be ToString(Result(i))
iii) Call ToString(body)
iv) If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception
v) If body is not parsable as FunctionBody then throw a SyntaxError exception
vi) Create a new Function object as specified in 13.2 with parameters specified by parsing P as a FormalParameterListopt and body specified by parsing body as a FunctionBody
Pass in a scope chain consisting of the global object as the Scope parameter
vii) Return Result(vi)
es5id: 15.3.2.1_A3_T2
description: >
Values of the function constructor arguments are
"{toString:function(){return 'a';}}" and "return a;"
--- |
1360 |
S15.3.2.1_A3_T3.js |
---
info: |
When the Function constructor is called with arguments p, body the following steps are taken:
i) Let Result(i) be the first argument
ii) Let P be ToString(Result(i))
iii) Call ToString(body)
iv) If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception
v) If body is not parsable as FunctionBody then throw a SyntaxError exception
vi) Create a new Function object as specified in 13.2 with parameters specified by parsing P as a FormalParameterListopt and body specified by parsing body as a FunctionBody
Pass in a scope chain consisting of the global object as the Scope parameter
vii) Return Result(vi)
es5id: 15.3.2.1_A3_T3
description: >
Values of the function constructor arguments are
"{toString:function(){p=1;return "a";}}" and
"{toString:function(){throw "body";}}"
--- |
1396 |
S15.3.2.1_A3_T4.js |
---
info: |
When the Function constructor is called with arguments p, body the following steps are taken:
i) Let Result(i) be the first argument
ii) Let P be ToString(Result(i))
iii) Call ToString(body)
iv) If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception
v) If body is not parsable as FunctionBody then throw a SyntaxError exception
vi) Create a new Function object as specified in 13.2 with parameters specified by parsing P as a FormalParameterListopt and body specified by parsing body as a FunctionBody
Pass in a scope chain consisting of the global object as the Scope parameter
vii) Return Result(vi)
es5id: 15.3.2.1_A3_T4
description: >
Values of the function constructor arguments are an undefined
variable and "return 1.1;"
--- |
1297 |
S15.3.2.1_A3_T5.js |
---
info: |
When the Function constructor is called with arguments p, body the following steps are taken:
i) Let Result(i) be the first argument
ii) Let P be ToString(Result(i))
iii) Call ToString(body)
iv) If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception
v) If body is not parsable as FunctionBody then throw a SyntaxError exception
vi) Create a new Function object as specified in 13.2 with parameters specified by parsing P as a FormalParameterListopt and body specified by parsing body as a FunctionBody
Pass in a scope chain consisting of the global object as the Scope parameter
vii) Return Result(vi)
es5id: 15.3.2.1_A3_T5
description: >
Values of the function constructor arguments are "void 0" and
"return \"A\";"
--- |
1294 |
S15.3.2.1_A3_T6.js |
---
info: |
When the Function constructor is called with arguments p, body the following steps are taken:
i) Let Result(i) be the first argument
ii) Let P be ToString(Result(i))
iii) Call ToString(body)
iv) If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception
v) If body is not parsable as FunctionBody then throw a SyntaxError exception
vi) Create a new Function object as specified in 13.2 with parameters specified by parsing P as a FormalParameterListopt and body specified by parsing body as a FunctionBody
Pass in a scope chain consisting of the global object as the Scope parameter
vii) Return Result(vi)
es5id: 15.3.2.1_A3_T6
description: >
Values of the function constructor arguments are "null" and
"return true;"
--- |
1294 |
S15.3.2.1_A3_T7.js |
---
info: |
When the Function constructor is called with arguments p, body the following steps are taken:
i) Let Result(i) be the first argument
ii) Let P be ToString(Result(i))
iii) Call ToString(body)
iv) If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception
v) If body is not parsable as FunctionBody then throw a SyntaxError exception
vi) Create a new Function object as specified in 13.2 with parameters specified by parsing P as a FormalParameterListopt and body specified by parsing body as a FunctionBody
Pass in a scope chain consisting of the global object as the Scope parameter
vii) Return Result(vi)
es5id: 15.3.2.1_A3_T7
description: >
Values of the function constructor arguments are "Object("a")" and
"return a;"
--- |
1297 |
S15.3.2.1_A3_T8.js |
---
info: |
When the Function constructor is called with arguments p, body the following steps are taken:
i) Let Result(i) be the first argument
ii) Let P be ToString(Result(i))
iii) Call ToString(body)
iv) If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception
v) If body is not parsable as FunctionBody then throw a SyntaxError exception
vi) Create a new Function object as specified in 13.2 with parameters specified by parsing P as a FormalParameterListopt and body specified by parsing body as a FunctionBody
Pass in a scope chain consisting of the global object as the Scope parameter
vii) Return Result(vi)
es5id: 15.3.2.1_A3_T8
description: >
Values of the function constructor arguments are "undefined" and
"return this;"
--- |
1291 |
S15.3.2.1_A3_T9.js |
---
info: |
When the Function constructor is called with arguments p, body the following steps are taken:
i) Let Result(i) be the first argument
ii) Let P be ToString(Result(i))
iii) Call ToString(body)
iv) If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception
v) If body is not parsable as FunctionBody then throw a SyntaxError exception
vi) Create a new Function object as specified in 13.2 with parameters specified by parsing P as a FormalParameterListopt and body specified by parsing body as a FunctionBody
Pass in a scope chain consisting of the global object as the Scope parameter
vii) Return Result(vi)
es5id: 15.3.2.1_A3_T9
description: >
Values of the function constructor arguments are "1,1" and "return
this;"
--- |
1305 |
S15.3.2.1_A3_T10.js |
---
info: |
When the Function constructor is called with arguments p, body the following steps are taken:
i) Let Result(i) be the first argument
ii) Let P be ToString(Result(i))
iii) Call ToString(body)
iv) If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception
v) If body is not parsable as FunctionBody then throw a SyntaxError exception
vi) Create a new Function object as specified in 13.2 with parameters specified by parsing P as a FormalParameterListopt and body specified by parsing body as a FunctionBody
Pass in a scope chain consisting of the global object as the Scope parameter
vii) Return Result(vi)
es5id: 15.3.2.1_A3_T10
description: >
Values of the function constructor arguments are
"{toString:function(){return "z;x"}}" and "return this;"
--- |
1382 |
S15.3.2.1_A3_T11.js |
---
info: |
When the Function constructor is called with arguments p, body the following steps are taken:
i) Let Result(i) be the first argument
ii) Let P be ToString(Result(i))
iii) Call ToString(body)
iv) If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception
v) If body is not parsable as FunctionBody then throw a SyntaxError exception
vi) Create a new Function object as specified in 13.2 with parameters specified by parsing P as a FormalParameterListopt and body specified by parsing body as a FunctionBody
Pass in a scope chain consisting of the global object as the Scope parameter
vii) Return Result(vi)
es5id: 15.3.2.1_A3_T11
description: >
Values of the function constructor arguments are "a,b,c" and "void
0"
--- |
1272 |
S15.3.2.1_A3_T12.js |
---
info: |
When the Function constructor is called with arguments p, body the following steps are taken:
i) Let Result(i) be the first argument
ii) Let P be ToString(Result(i))
iii) Call ToString(body)
iv) If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception
v) If body is not parsable as FunctionBody then throw a SyntaxError exception
vi) Create a new Function object as specified in 13.2 with parameters specified by parsing P as a FormalParameterListopt and body specified by parsing body as a FunctionBody
Pass in a scope chain consisting of the global object as the Scope parameter
vii) Return Result(vi)
es5id: 15.3.2.1_A3_T12
description: >
Values of the function constructor arguments are "a,b,c" and
"undefined"
--- |
1278 |
S15.3.2.1_A3_T13.js |
---
info: |
When the Function constructor is called with arguments p, body the following steps are taken:
i) Let Result(i) be the first argument
ii) Let P be ToString(Result(i))
iii) Call ToString(body)
iv) If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception
v) If body is not parsable as FunctionBody then throw a SyntaxError exception
vi) Create a new Function object as specified in 13.2 with parameters specified by parsing P as a FormalParameterListopt and body specified by parsing body as a FunctionBody
Pass in a scope chain consisting of the global object as the Scope parameter
vii) Return Result(vi)
es5id: 15.3.2.1_A3_T13
description: Values of the function constructor arguments are "a,b,c" and "null"
--- |
1258 |
S15.3.2.1_A3_T14.js |
---
info: |
When the Function constructor is called with arguments p, body the following steps are taken:
i) Let Result(i) be the first argument
ii) Let P be ToString(Result(i))
iii) Call ToString(body)
iv) If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception
v) If body is not parsable as FunctionBody then throw a SyntaxError exception
vi) Create a new Function object as specified in 13.2 with parameters specified by parsing P as a FormalParameterListopt and body specified by parsing body as a FunctionBody
Pass in a scope chain consisting of the global object as the Scope parameter
vii) Return Result(vi)
es5id: 15.3.2.1_A3_T14
description: >
Values of the function constructor arguments are "a,b,c" and an
undefined variable
--- |
1294 |
S15.3.2.1_A3_T15.js |
---
info: |
When the Function constructor is called with arguments p, body the following steps are taken:
i) Let Result(i) be the first argument
ii) Let P be ToString(Result(i))
iii) Call ToString(body)
iv) If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception
v) If body is not parsable as FunctionBody then throw a SyntaxError exception
vi) Create a new Function object as specified in 13.2 with parameters specified by parsing P as a FormalParameterListopt and body specified by parsing body as a FunctionBody
Pass in a scope chain consisting of the global object as the Scope parameter
vii) Return Result(vi)
es5id: 15.3.2.1_A3_T15
description: >
Values of the function constructor arguments are are two empty
strings
--- |
1252 |
S15.3.2_A1.js |
---
info: |
When Function is called as part of a new expression, it is a constructor:
it initialises the newly created object
es5id: 15.3.2_A1
description: >
Checking the constuctor of the object that is created as a new
Function
--- |
641 |
S15.3.3_A1.js |
---
info: The Function constructor has the property "prototype"
es5id: 15.3.3_A1
description: Checking existence of the property "prototype"
--- |
407 |
S15.3.3_A2_T1.js |
---
info: |
The value of the internal [[Prototype]] property of the Function constructor
is the Function prototype object
es5id: 15.3.3_A2_T1
description: Checking prototype of Function
--- |
478 |
S15.3.3_A2_T2.js |
---
info: |
The value of the internal [[Prototype]] property of the Function constructor
is the Function prototype object
es5id: 15.3.3_A2_T2
description: Add new property to Function.prototype and check it
--- |
510 |
S15.3.3_A3.js |
---
info: Function constructor has length property whose value is 1
es5id: 15.3.3_A3
description: Checking Function.length property
--- |
482 |
S15.3.5_A1_T1.js |
---
info: The value of the [[Class]] property is "Function"
es5id: 15.3.5_A1_T1
description: For testing use variable f = new Function
--- |
484 |
S15.3.5_A1_T2.js |
---
info: The value of the [[Class]] property is "Function"
es5id: 15.3.5_A1_T2
description: For testing use variable f = Function()
--- |
478 |
S15.3.5_A2_T1.js |
---
info: Every function instance has a [[Call]] property
es5id: 15.3.5_A2_T1
description: For testing call Function("var x =1; this.y=2;return \"OK\";")()
--- |
627 |
S15.3.5_A2_T2.js |
---
info: Every function instance has a [[Call]] property
es5id: 15.3.5_A2_T2
description: >
For testing call (new Function("arg1,arg2","var x =arg1;
this.y=arg2;return arg1+arg2;"))("1",2)
--- |
735 |
S15.3.5_A3_T1.js |
---
info: every function instance has a [[Construct]] property
es5id: 15.3.5_A3_T1
description: As constructor use Function("var x =1; this.y=2;return \"OK\";")
--- |
694 |
S15.3.5_A3_T2.js |
---
info: every function instance has a [[Construct]] property
es5id: 15.3.5_A3_T2
description: >
As constructor use new Function("arg1,arg2","var x =1;
this.y=arg1+arg2;return \"OK\";")
--- |
767 |
S15.3_A1.js |
---
info: Function is the property of global
es5id: 15.3_A1
description: Compare Function with this.Function
--- |
418 |
S15.3_A2_T1.js |
---
info: |
Since applying the "call" method to Function constructor themself leads
to creating a new function instance, the second argument must be a valid
function body
es5id: 15.3_A2_T1
description: Checking if executing "Function.call(this, "var x / = 1;")" fails
--- |
631 |
S15.3_A2_T2.js |
---
info: |
Since applying the "call" method to Function constructor themself leads
to creating a new function instance, the second argument must be a valid
function body
es5id: 15.3_A2_T2
description: Checking if executing "Function.call(this, "var #x = 1;")" fails
--- |
631 |
S15.3_A3_T1.js |
---
info: |
Since when call is used for Function constructor themself new function instance creates
and then first argument(thisArg) should be ignored
es5id: 15.3_A3_T1
description: First argument is object
--- |
791 |
S15.3_A3_T2.js |
---
info: |
Since when call is used for Function constructor themself new function instance creates
and then first argument(thisArg) should be ignored
es5id: 15.3_A3_T2
description: First argument is string and null
--- |
658 |
S15.3_A3_T3.js |
---
info: |
Since when call is used for Function constructor themself new function instance creates
and then first argument(thisArg) should be ignored
es5id: 15.3_A3_T3
description: First argument is this, and this don`t have needed variable
--- |
920 |
S15.3_A3_T4.js |
---
info: |
Since when call is used for Function constructor themself new function instance creates
and then first argument(thisArg) should be ignored
es5id: 15.3_A3_T4
description: First argument is this, and this have needed variable
--- |
595 |
S15.3_A3_T5.js |
---
info: |
Since when call is used for Function constructor themself new function instance creates
and then first argument(thisArg) should be ignored
es5id: 15.3_A3_T5
description: >
First argument is this, and this don`t have needed variable.
Function return this.var_name
--- |
834 |
S15.3_A3_T6.js |
---
info: |
Since when call is used for Function constructor themself new function instance creates
and then first argument(thisArg) should be ignored
es5id: 15.3_A3_T6
description: >
First argument is this, and this have needed variable. Function
return this.var_name
--- |
641 |
shell.js |
---
description: |
Test if a given function is a constructor function.
defines: [isConstructor]
features: [Reflect.construct]
--- |
596 |
StrictFunction_reservedwords_with.js |
---
esid: sec-createdynamicfunction
description: Strictfunction shouldn't have the reserved word "with"
info: |
CreateDynamicFunction ( constructor, newTarget, kind, args )
...
20 Perform the following substeps in an implementation-dependent order, possibly interleaving parsing and error detection:
...
c. Let strict be ContainsUseStrict of body.
d. If any static semantics errors are detected for parameters or body, throw a SyntaxError exception.
If strict is true, the Early Error rules for UniqueFormalParameters:FormalParameters are applied.
...
...
--- |
936 |
StrictFunction_restricted-properties-strict.js |
---
description: >
ECMAScript Function objects defined using syntactic constructors
in strict mode code do not have own properties "caller" or
"arguments" other than those that are created by applying the
AddRestrictedFunctionProperties abstract operation to the function.
flags: [onlyStrict]
es6id: 16.1
--- |
1758 |