summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRick Waldron <waldron.rick@gmail.com>2018-02-15 15:49:19 -0500
committerLeo Balter <leonardo.balter@gmail.com>2018-02-15 15:49:19 -0500
commit1b30a976e820f76cf6ae6666f1a5d2b19e798944 (patch)
tree9a76fb041493c1cb56b796ec20a0a98c054e568b
parentf5746805956b572ddd2e6e9081a6505b445998a9 (diff)
downloadqtdeclarative-testsuites-1b30a976e820f76cf6ae6666f1a5d2b19e798944.tar.gz
built-ins/Function/*: make all indentation consistent (depth & character) (#1424)
This intentionally skips test/built-ins/Function/prototype/toString/*
-rw-r--r--test/built-ins/Function/15.3.2.1-11-1-s.js4
-rw-r--r--test/built-ins/Function/15.3.2.1-11-1.js2
-rw-r--r--test/built-ins/Function/15.3.2.1-11-2-s.js2
-rw-r--r--test/built-ins/Function/15.3.2.1-11-3-s.js2
-rw-r--r--test/built-ins/Function/15.3.2.1-11-3.js2
-rw-r--r--test/built-ins/Function/15.3.2.1-11-4-s.js2
-rw-r--r--test/built-ins/Function/15.3.2.1-11-5-s.js4
-rw-r--r--test/built-ins/Function/15.3.2.1-11-5.js2
-rw-r--r--test/built-ins/Function/15.3.2.1-11-6-s.js2
-rw-r--r--test/built-ins/Function/15.3.2.1-11-7-s.js2
-rw-r--r--test/built-ins/Function/15.3.2.1-11-8-s.js2
-rw-r--r--test/built-ins/Function/15.3.2.1-11-9-s.js2
-rw-r--r--test/built-ins/Function/15.3.5-1gs.js5
-rw-r--r--test/built-ins/Function/15.3.5.4_2-10gs.js4
-rw-r--r--test/built-ins/Function/15.3.5.4_2-11gs.js4
-rw-r--r--test/built-ins/Function/15.3.5.4_2-12gs.js2
-rw-r--r--test/built-ins/Function/15.3.5.4_2-13gs.js4
-rw-r--r--test/built-ins/Function/15.3.5.4_2-14gs.js2
-rw-r--r--test/built-ins/Function/15.3.5.4_2-15gs.js6
-rw-r--r--test/built-ins/Function/15.3.5.4_2-16gs.js8
-rw-r--r--test/built-ins/Function/15.3.5.4_2-17gs.js8
-rw-r--r--test/built-ins/Function/15.3.5.4_2-18gs.js10
-rw-r--r--test/built-ins/Function/15.3.5.4_2-19gs.js8
-rw-r--r--test/built-ins/Function/15.3.5.4_2-1gs.js6
-rw-r--r--test/built-ins/Function/15.3.5.4_2-20gs.js10
-rw-r--r--test/built-ins/Function/15.3.5.4_2-21gs.js12
-rw-r--r--test/built-ins/Function/15.3.5.4_2-22gs.js12
-rw-r--r--test/built-ins/Function/15.3.5.4_2-23gs.js10
-rw-r--r--test/built-ins/Function/15.3.5.4_2-24gs.js14
-rw-r--r--test/built-ins/Function/15.3.5.4_2-25gs.js14
-rw-r--r--test/built-ins/Function/15.3.5.4_2-26gs.js12
-rw-r--r--test/built-ins/Function/15.3.5.4_2-27gs.js14
-rw-r--r--test/built-ins/Function/15.3.5.4_2-28gs.js14
-rw-r--r--test/built-ins/Function/15.3.5.4_2-29gs.js10
-rw-r--r--test/built-ins/Function/15.3.5.4_2-2gs.js8
-rw-r--r--test/built-ins/Function/15.3.5.4_2-30gs.js15
-rw-r--r--test/built-ins/Function/15.3.5.4_2-31gs.js14
-rw-r--r--test/built-ins/Function/15.3.5.4_2-32gs.js12
-rw-r--r--test/built-ins/Function/15.3.5.4_2-33gs.js17
-rw-r--r--test/built-ins/Function/15.3.5.4_2-34gs.js16
-rw-r--r--test/built-ins/Function/15.3.5.4_2-35gs.js14
-rw-r--r--test/built-ins/Function/15.3.5.4_2-36gs.js17
-rw-r--r--test/built-ins/Function/15.3.5.4_2-37gs.js16
-rw-r--r--test/built-ins/Function/15.3.5.4_2-38gs.js12
-rw-r--r--test/built-ins/Function/15.3.5.4_2-39gs.js14
-rw-r--r--test/built-ins/Function/15.3.5.4_2-3gs.js8
-rw-r--r--test/built-ins/Function/15.3.5.4_2-40gs.js14
-rw-r--r--test/built-ins/Function/15.3.5.4_2-41gs.js12
-rw-r--r--test/built-ins/Function/15.3.5.4_2-42gs.js16
-rw-r--r--test/built-ins/Function/15.3.5.4_2-43gs.js16
-rw-r--r--test/built-ins/Function/15.3.5.4_2-44gs.js14
-rw-r--r--test/built-ins/Function/15.3.5.4_2-45gs.js16
-rw-r--r--test/built-ins/Function/15.3.5.4_2-46gs.js16
-rw-r--r--test/built-ins/Function/15.3.5.4_2-47gs.js12
-rw-r--r--test/built-ins/Function/15.3.5.4_2-48gs.js10
-rw-r--r--test/built-ins/Function/15.3.5.4_2-49gs.js11
-rw-r--r--test/built-ins/Function/15.3.5.4_2-4gs.js10
-rw-r--r--test/built-ins/Function/15.3.5.4_2-50gs.js10
-rw-r--r--test/built-ins/Function/15.3.5.4_2-51gs.js11
-rw-r--r--test/built-ins/Function/15.3.5.4_2-52gs.js10
-rw-r--r--test/built-ins/Function/15.3.5.4_2-53gs.js11
-rw-r--r--test/built-ins/Function/15.3.5.4_2-54gs.js10
-rw-r--r--test/built-ins/Function/15.3.5.4_2-55gs.js11
-rw-r--r--test/built-ins/Function/15.3.5.4_2-56gs.js14
-rw-r--r--test/built-ins/Function/15.3.5.4_2-57gs.js9
-rw-r--r--test/built-ins/Function/15.3.5.4_2-58gs.js9
-rw-r--r--test/built-ins/Function/15.3.5.4_2-59gs.js9
-rw-r--r--test/built-ins/Function/15.3.5.4_2-5gs.js8
-rw-r--r--test/built-ins/Function/15.3.5.4_2-60gs.js9
-rw-r--r--test/built-ins/Function/15.3.5.4_2-61gs.js9
-rw-r--r--test/built-ins/Function/15.3.5.4_2-62gs.js9
-rw-r--r--test/built-ins/Function/15.3.5.4_2-63gs.js9
-rw-r--r--test/built-ins/Function/15.3.5.4_2-64gs.js10
-rw-r--r--test/built-ins/Function/15.3.5.4_2-65gs.js9
-rw-r--r--test/built-ins/Function/15.3.5.4_2-66gs.js9
-rw-r--r--test/built-ins/Function/15.3.5.4_2-67gs.js9
-rw-r--r--test/built-ins/Function/15.3.5.4_2-68gs.js9
-rw-r--r--test/built-ins/Function/15.3.5.4_2-69gs.js10
-rw-r--r--test/built-ins/Function/15.3.5.4_2-6gs.js10
-rw-r--r--test/built-ins/Function/15.3.5.4_2-70gs.js9
-rw-r--r--test/built-ins/Function/15.3.5.4_2-71gs.js9
-rw-r--r--test/built-ins/Function/15.3.5.4_2-72gs.js9
-rw-r--r--test/built-ins/Function/15.3.5.4_2-73gs.js9
-rw-r--r--test/built-ins/Function/15.3.5.4_2-74gs.js10
-rw-r--r--test/built-ins/Function/15.3.5.4_2-75gs.js14
-rw-r--r--test/built-ins/Function/15.3.5.4_2-76gs.js11
-rw-r--r--test/built-ins/Function/15.3.5.4_2-77gs.js11
-rw-r--r--test/built-ins/Function/15.3.5.4_2-78gs.js11
-rw-r--r--test/built-ins/Function/15.3.5.4_2-79gs.js11
-rw-r--r--test/built-ins/Function/15.3.5.4_2-7gs.js4
-rw-r--r--test/built-ins/Function/15.3.5.4_2-80gs.js11
-rw-r--r--test/built-ins/Function/15.3.5.4_2-81gs.js11
-rw-r--r--test/built-ins/Function/15.3.5.4_2-82gs.js11
-rw-r--r--test/built-ins/Function/15.3.5.4_2-83gs.js12
-rw-r--r--test/built-ins/Function/15.3.5.4_2-84gs.js11
-rw-r--r--test/built-ins/Function/15.3.5.4_2-85gs.js11
-rw-r--r--test/built-ins/Function/15.3.5.4_2-86gs.js11
-rw-r--r--test/built-ins/Function/15.3.5.4_2-87gs.js11
-rw-r--r--test/built-ins/Function/15.3.5.4_2-88gs.js12
-rw-r--r--test/built-ins/Function/15.3.5.4_2-89gs.js11
-rw-r--r--test/built-ins/Function/15.3.5.4_2-8gs.js4
-rw-r--r--test/built-ins/Function/15.3.5.4_2-90gs.js11
-rw-r--r--test/built-ins/Function/15.3.5.4_2-91gs.js11
-rw-r--r--test/built-ins/Function/15.3.5.4_2-92gs.js11
-rw-r--r--test/built-ins/Function/15.3.5.4_2-93gs.js12
-rw-r--r--test/built-ins/Function/15.3.5.4_2-94gs.js10
-rw-r--r--test/built-ins/Function/15.3.5.4_2-95gs.js6
-rw-r--r--test/built-ins/Function/15.3.5.4_2-96gs.js16
-rw-r--r--test/built-ins/Function/15.3.5.4_2-97gs.js8
-rw-r--r--test/built-ins/Function/15.3.5.4_2-9gs.js4
-rw-r--r--test/built-ins/Function/S10.1.1_A1_T3.js6
-rw-r--r--test/built-ins/Function/S15.3.1_A1_T1.js2
-rw-r--r--test/built-ins/Function/S15.3.2.1_A1_T1.js8
-rw-r--r--test/built-ins/Function/S15.3.2.1_A1_T10.js2
-rw-r--r--test/built-ins/Function/S15.3.2.1_A1_T11.js2
-rw-r--r--test/built-ins/Function/S15.3.2.1_A1_T12.js4
-rw-r--r--test/built-ins/Function/S15.3.2.1_A1_T13.js4
-rw-r--r--test/built-ins/Function/S15.3.2.1_A1_T2.js12
-rw-r--r--test/built-ins/Function/S15.3.2.1_A1_T3.js4
-rw-r--r--test/built-ins/Function/S15.3.2.1_A1_T4.js4
-rw-r--r--test/built-ins/Function/S15.3.2.1_A1_T5.js4
-rw-r--r--test/built-ins/Function/S15.3.2.1_A1_T6.js2
-rw-r--r--test/built-ins/Function/S15.3.2.1_A1_T7.js4
-rw-r--r--test/built-ins/Function/S15.3.2.1_A1_T8.js2
-rw-r--r--test/built-ins/Function/S15.3.2.1_A2_T1.js4
-rw-r--r--test/built-ins/Function/S15.3.2.1_A2_T2.js4
-rw-r--r--test/built-ins/Function/S15.3.2.1_A2_T3.js4
-rw-r--r--test/built-ins/Function/S15.3.2.1_A2_T4.js12
-rw-r--r--test/built-ins/Function/S15.3.2.1_A2_T5.js14
-rw-r--r--test/built-ins/Function/S15.3.2.1_A2_T6.js14
-rw-r--r--test/built-ins/Function/S15.3.2.1_A3_T1.js16
-rw-r--r--test/built-ins/Function/S15.3.2.1_A3_T10.js10
-rw-r--r--test/built-ins/Function/S15.3.2.1_A3_T11.js4
-rw-r--r--test/built-ins/Function/S15.3.2.1_A3_T12.js4
-rw-r--r--test/built-ins/Function/S15.3.2.1_A3_T13.js4
-rw-r--r--test/built-ins/Function/S15.3.2.1_A3_T14.js4
-rw-r--r--test/built-ins/Function/S15.3.2.1_A3_T15.js4
-rw-r--r--test/built-ins/Function/S15.3.2.1_A3_T2.js12
-rw-r--r--test/built-ins/Function/S15.3.2.1_A3_T3.js17
-rw-r--r--test/built-ins/Function/S15.3.2.1_A3_T4.js6
-rw-r--r--test/built-ins/Function/S15.3.2.1_A3_T5.js6
-rw-r--r--test/built-ins/Function/S15.3.2.1_A3_T6.js4
-rw-r--r--test/built-ins/Function/S15.3.2.1_A3_T7.js6
-rw-r--r--test/built-ins/Function/S15.3.2.1_A3_T8.js6
-rw-r--r--test/built-ins/Function/S15.3.2.1_A3_T9.js6
-rw-r--r--test/built-ins/Function/S15.3.3_A1.js2
-rw-r--r--test/built-ins/Function/S15.3.3_A3.js2
-rw-r--r--test/built-ins/Function/S15.3.5_A2_T2.js2
-rw-r--r--test/built-ins/Function/S15.3.5_A3_T2.js4
-rw-r--r--test/built-ins/Function/S15.3_A2_T1.js6
-rw-r--r--test/built-ins/Function/S15.3_A2_T2.js6
-rw-r--r--test/built-ins/Function/S15.3_A3_T1.js8
-rw-r--r--test/built-ins/Function/S15.3_A3_T2.js4
-rw-r--r--test/built-ins/Function/S15.3_A3_T3.js18
-rw-r--r--test/built-ins/Function/S15.3_A3_T4.js6
-rw-r--r--test/built-ins/Function/S15.3_A3_T5.js10
-rw-r--r--test/built-ins/Function/S15.3_A3_T6.js6
-rw-r--r--test/built-ins/Function/length/15.3.3.2-1.js2
-rw-r--r--test/built-ins/Function/length/S15.3.5.1_A1_T2.js2
-rw-r--r--test/built-ins/Function/length/S15.3.5.1_A1_T3.js2
-rw-r--r--test/built-ins/Function/length/S15.3.5.1_A2_T1.js2
-rw-r--r--test/built-ins/Function/length/S15.3.5.1_A2_T2.js2
-rw-r--r--test/built-ins/Function/length/S15.3.5.1_A2_T3.js2
-rw-r--r--test/built-ins/Function/length/S15.3.5.1_A3_T1.js4
-rw-r--r--test/built-ins/Function/length/S15.3.5.1_A3_T2.js4
-rw-r--r--test/built-ins/Function/length/S15.3.5.1_A3_T3.js4
-rw-r--r--test/built-ins/Function/length/S15.3.5.1_A4_T1.js9
-rw-r--r--test/built-ins/Function/length/S15.3.5.1_A4_T2.js12
-rw-r--r--test/built-ins/Function/length/S15.3.5.1_A4_T3.js12
-rw-r--r--test/built-ins/Function/prototype/S15.3.3.1_A1.js10
-rw-r--r--test/built-ins/Function/prototype/S15.3.3.1_A2.js6
-rw-r--r--test/built-ins/Function/prototype/S15.3.3.1_A4.js6
-rw-r--r--test/built-ins/Function/prototype/S15.3.4_A1.js2
-rw-r--r--test/built-ins/Function/prototype/S15.3.4_A2_T1.js2
-rw-r--r--test/built-ins/Function/prototype/S15.3.4_A2_T2.js4
-rw-r--r--test/built-ins/Function/prototype/S15.3.4_A2_T3.js2
-rw-r--r--test/built-ins/Function/prototype/S15.3.4_A3_T1.js4
-rw-r--r--test/built-ins/Function/prototype/S15.3.4_A3_T2.js2
-rw-r--r--test/built-ins/Function/prototype/Symbol.hasInstance/this-val-poisoned-prototype.js4
-rw-r--r--test/built-ins/Function/prototype/apply/15.3.4.3-1-s.js6
-rw-r--r--test/built-ins/Function/prototype/apply/15.3.4.3-2-s.js6
-rw-r--r--test/built-ins/Function/prototype/apply/15.3.4.3-3-s.js6
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A10.js4
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A11.js6
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A12.js2
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A16.js2
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A1_T1.js8
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A1_T2.js6
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A2_T2.js2
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T5.js2
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T6.js6
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T7.js2
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T8.js6
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T9.js2
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T1.js2
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T2.js2
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T3.js7
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T4.js5
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T5.js6
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T6.js6
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T7.js2
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T8.js2
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A6_T2.js4
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A6_T3.js6
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T1.js2
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T10.js8
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T2.js2
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T3.js12
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T4.js14
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T5.js6
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T6.js6
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T7.js6
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T8.js6
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T9.js6
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A8_T4.js2
-rw-r--r--test/built-ins/Function/prototype/apply/S15.3.4.3_A8_T6.js4
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-0-1.js2
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-10-1.js4
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-11-1.js6
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-13.b-1.js8
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-13.b-2.js8
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-13.b-3.js8
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-13.b-4.js8
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-13.b-5.js8
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-13.b-6.js6
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-15-1.js10
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-15-2.js10
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-15-3.js2
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-15-4.js21
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-15-5.js15
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-16-1.js10
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-16-2.js6
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-2-1.js10
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-2-10.js2
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-2-11.js2
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-2-12.js2
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-2-13.js2
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-2-14.js2
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-2-15.js2
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-2-16.js4
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-2-2.js10
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-2-3.js4
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-2-4.js4
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-2-5.js4
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-2-6.js4
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-2-7.js2
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-2-8.js8
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-2-9.js4
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-20-2.js6
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-20-3.js6
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-21-2.js6
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-21-3.js6
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-3-1.js10
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-6-1.js6
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-6-10.js24
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-6-11.js14
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-6-12.js6
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-6-2.js6
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-6-3.js8
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-6-4.js24
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-6-5.js14
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-6-6.js16
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-6-7.js16
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-6-8.js26
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-6-9.js12
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-8-1.js8
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-8-2.js10
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-9-1.js8
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5-9-2.js8
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.1-4-1.js8
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.1-4-10.js12
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.1-4-11.js12
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.1-4-12.js14
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.1-4-13.js14
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.1-4-14.js14
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.1-4-15.js14
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.1-4-2.js12
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.1-4-3.js8
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.1-4-4.js8
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.1-4-5.js8
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.1-4-6.js12
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.1-4-7.js12
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.1-4-8.js12
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.1-4-9.js12
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.2-4-1.js16
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.2-4-10.js10
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.2-4-11.js10
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.2-4-12.js10
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.2-4-13.js10
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.2-4-14.js10
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.2-4-2.js16
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.2-4-3.js10
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.2-4-4.js10
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.2-4-5.js18
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.2-4-6.js10
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.2-4-7.js10
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.2-4-8.js10
-rw-r--r--test/built-ins/Function/prototype/bind/15.3.4.5.2-4-9.js10
-rw-r--r--test/built-ins/Function/prototype/bind/S15.3.4.5_A1.js9
-rw-r--r--test/built-ins/Function/prototype/bind/S15.3.4.5_A16.js2
-rw-r--r--test/built-ins/Function/prototype/bind/S15.3.4.5_A2.js9
-rw-r--r--test/built-ins/Function/prototype/bind/instance-name-chained.js4
-rw-r--r--test/built-ins/Function/prototype/bind/instance-name-non-string.js24
-rw-r--r--test/built-ins/Function/prototype/bind/instance-name.js4
-rw-r--r--test/built-ins/Function/prototype/bind/proto-from-ctor-realm.js2
-rw-r--r--test/built-ins/Function/prototype/call/15.3.4.4-1-s.js6
-rw-r--r--test/built-ins/Function/prototype/call/15.3.4.4-2-s.js6
-rw-r--r--test/built-ins/Function/prototype/call/15.3.4.4-3-s.js6
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A10.js4
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A11.js4
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A12.js2
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A16.js2
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A1_T1.js8
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A1_T2.js6
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A2_T2.js2
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A3_T5.js2
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A3_T6.js6
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A3_T7.js2
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A3_T8.js6
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A3_T9.js2
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A5_T1.js2
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A5_T2.js2
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A5_T3.js7
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A5_T4.js5
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A5_T5.js6
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A5_T6.js6
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A5_T7.js2
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A5_T8.js2
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A6_T1.js2
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A6_T10.js8
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A6_T2.js4
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A6_T3.js14
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A6_T4.js14
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A6_T5.js6
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A6_T6.js6
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A6_T7.js6
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A6_T8.js6
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A6_T9.js6
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A7_T4.js2
-rw-r--r--test/built-ins/Function/prototype/call/S15.3.4.4_A7_T6.js4
-rw-r--r--test/built-ins/Function/prototype/restricted-property-arguments.js2
-rw-r--r--test/built-ins/Function/prototype/restricted-property-caller.js2
342 files changed, 1499 insertions, 1133 deletions
diff --git a/test/built-ins/Function/15.3.2.1-11-1-s.js b/test/built-ins/Function/15.3.2.1-11-1-s.js
index e03cedaf5..dabfb8ab7 100644
--- a/test/built-ins/Function/15.3.2.1-11-1-s.js
+++ b/test/built-ins/Function/15.3.2.1-11-1-s.js
@@ -9,7 +9,7 @@ description: >
flags: [noStrict]
---*/
-
+
assert.throws(SyntaxError, function() {
- Function('a','a','"use strict";');
+ Function('a', 'a', '"use strict";');
});
diff --git a/test/built-ins/Function/15.3.2.1-11-1.js b/test/built-ins/Function/15.3.2.1-11-1.js
index 8caa5e5f7..9c6706de1 100644
--- a/test/built-ins/Function/15.3.2.1-11-1.js
+++ b/test/built-ins/Function/15.3.2.1-11-1.js
@@ -8,4 +8,4 @@ description: >
if body not strict
---*/
- Function('a','a','return;');
+Function('a', 'a', 'return;');
diff --git a/test/built-ins/Function/15.3.2.1-11-2-s.js b/test/built-ins/Function/15.3.2.1-11-2-s.js
index 7f670f147..4ed4ad8c9 100644
--- a/test/built-ins/Function/15.3.2.1-11-2-s.js
+++ b/test/built-ins/Function/15.3.2.1-11-2-s.js
@@ -9,4 +9,4 @@ description: >
flags: [onlyStrict]
---*/
- Function('a','a','return;');
+Function('a', 'a', 'return;');
diff --git a/test/built-ins/Function/15.3.2.1-11-3-s.js b/test/built-ins/Function/15.3.2.1-11-3-s.js
index 29adf517d..204f9724b 100644
--- a/test/built-ins/Function/15.3.2.1-11-3-s.js
+++ b/test/built-ins/Function/15.3.2.1-11-3-s.js
@@ -11,5 +11,5 @@ flags: [noStrict]
assert.throws(SyntaxError, function() {
- Function('eval', '"use strict";');
+ Function('eval', '"use strict";');
});
diff --git a/test/built-ins/Function/15.3.2.1-11-3.js b/test/built-ins/Function/15.3.2.1-11-3.js
index a1d3cf431..95e89dd53 100644
--- a/test/built-ins/Function/15.3.2.1-11-3.js
+++ b/test/built-ins/Function/15.3.2.1-11-3.js
@@ -8,4 +8,4 @@ description: >
body is not strict mode
---*/
- Function('eval', 'return;');
+Function('eval', 'return;');
diff --git a/test/built-ins/Function/15.3.2.1-11-4-s.js b/test/built-ins/Function/15.3.2.1-11-4-s.js
index 858a9d7ac..155a55fd6 100644
--- a/test/built-ins/Function/15.3.2.1-11-4-s.js
+++ b/test/built-ins/Function/15.3.2.1-11-4-s.js
@@ -10,4 +10,4 @@ description: >
flags: [onlyStrict]
---*/
- Function('eval', 'return;');
+Function('eval', 'return;');
diff --git a/test/built-ins/Function/15.3.2.1-11-5-s.js b/test/built-ins/Function/15.3.2.1-11-5-s.js
index 00db23462..6017374b1 100644
--- a/test/built-ins/Function/15.3.2.1-11-5-s.js
+++ b/test/built-ins/Function/15.3.2.1-11-5-s.js
@@ -9,7 +9,7 @@ description: >
flags: [noStrict]
---*/
-
+
assert.throws(SyntaxError, function() {
- Function('a,a','"use strict";');
+ Function('a,a', '"use strict";');
});
diff --git a/test/built-ins/Function/15.3.2.1-11-5.js b/test/built-ins/Function/15.3.2.1-11-5.js
index 90d419572..debbe409b 100644
--- a/test/built-ins/Function/15.3.2.1-11-5.js
+++ b/test/built-ins/Function/15.3.2.1-11-5.js
@@ -8,4 +8,4 @@ description: >
if body is not strict
---*/
- Function('a,a','return;');
+Function('a,a', 'return;');
diff --git a/test/built-ins/Function/15.3.2.1-11-6-s.js b/test/built-ins/Function/15.3.2.1-11-6-s.js
index 5d5362cbb..6f840ef8d 100644
--- a/test/built-ins/Function/15.3.2.1-11-6-s.js
+++ b/test/built-ins/Function/15.3.2.1-11-6-s.js
@@ -9,4 +9,4 @@ description: >
flags: [onlyStrict]
---*/
- Function('a,a','return a;');
+Function('a,a', 'return a;');
diff --git a/test/built-ins/Function/15.3.2.1-11-7-s.js b/test/built-ins/Function/15.3.2.1-11-7-s.js
index dd1d6e55a..e82253bc1 100644
--- a/test/built-ins/Function/15.3.2.1-11-7-s.js
+++ b/test/built-ins/Function/15.3.2.1-11-7-s.js
@@ -10,4 +10,4 @@ description: >
flags: [onlyStrict]
---*/
- Function('arguments', 'return;');
+Function('arguments', 'return;');
diff --git a/test/built-ins/Function/15.3.2.1-11-8-s.js b/test/built-ins/Function/15.3.2.1-11-8-s.js
index 2795b4ddf..a9ec023b0 100644
--- a/test/built-ins/Function/15.3.2.1-11-8-s.js
+++ b/test/built-ins/Function/15.3.2.1-11-8-s.js
@@ -11,4 +11,4 @@ description: >
flags: [onlyStrict]
---*/
- var foo = new Function("baz", "qux", "baz", "return 0;");
+var foo = new Function("baz", "qux", "baz", "return 0;");
diff --git a/test/built-ins/Function/15.3.2.1-11-9-s.js b/test/built-ins/Function/15.3.2.1-11-9-s.js
index fef8fdade..a80d3e15f 100644
--- a/test/built-ins/Function/15.3.2.1-11-9-s.js
+++ b/test/built-ins/Function/15.3.2.1-11-9-s.js
@@ -10,4 +10,4 @@ description: >
body
---*/
- var foo = new Function("baz", "baz", "baz", "return 0;");
+var foo = new Function("baz", "baz", "baz", "return 0;");
diff --git a/test/built-ins/Function/15.3.5-1gs.js b/test/built-ins/Function/15.3.5-1gs.js
index 129fa7834..b9b64c4cd 100644
--- a/test/built-ins/Function/15.3.5-1gs.js
+++ b/test/built-ins/Function/15.3.5-1gs.js
@@ -9,9 +9,8 @@ description: >
flags: [onlyStrict]
---*/
-"use strict";
-function _15_3_5_1_gs() {}
+function fn() {}
assert.throws(TypeError, function() {
- _15_3_5_1_gs.caller;
+ fn.caller;
});
diff --git a/test/built-ins/Function/15.3.5.4_2-10gs.js b/test/built-ins/Function/15.3.5.4_2-10gs.js
index 70be7b5f0..70f1e76a9 100644
--- a/test/built-ins/Function/15.3.5.4_2-10gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-10gs.js
@@ -13,9 +13,9 @@ flags: [noStrict]
var f = new Function("\"use strict\";\ngNonStrict();");
assert.throws(TypeError, function() {
- f();
+ f();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-11gs.js b/test/built-ins/Function/15.3.5.4_2-11gs.js
index 25824f937..8303b2068 100644
--- a/test/built-ins/Function/15.3.5.4_2-11gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-11gs.js
@@ -10,10 +10,10 @@ flags: [onlyStrict]
---*/
assert.throws(TypeError, function() {
- eval("gNonStrict();");
+ eval("gNonStrict();");
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-12gs.js b/test/built-ins/Function/15.3.5.4_2-12gs.js
index 4b1fc5363..a63cb49e0 100644
--- a/test/built-ins/Function/15.3.5.4_2-12gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-12gs.js
@@ -14,5 +14,5 @@ eval("\"use strict\";\ngNonStrict();");
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-13gs.js b/test/built-ins/Function/15.3.5.4_2-13gs.js
index 2d641a9d6..0ad5d98a6 100644
--- a/test/built-ins/Function/15.3.5.4_2-13gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-13gs.js
@@ -12,9 +12,9 @@ flags: [onlyStrict]
var my_eval = eval;
assert.throws(TypeError, function() {
- my_eval("gNonStrict();");
+ my_eval("gNonStrict();");
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-14gs.js b/test/built-ins/Function/15.3.5.4_2-14gs.js
index 0df946d58..dd7bae085 100644
--- a/test/built-ins/Function/15.3.5.4_2-14gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-14gs.js
@@ -16,5 +16,5 @@ my_eval("\"use strict\";\ngNonStrict();");
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-15gs.js b/test/built-ins/Function/15.3.5.4_2-15gs.js
index 73478f877..beb5bf508 100644
--- a/test/built-ins/Function/15.3.5.4_2-15gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-15gs.js
@@ -11,13 +11,13 @@ flags: [onlyStrict]
---*/
function f() {
- gNonStrict();
+ gNonStrict();
}
assert.throws(TypeError, function() {
- new f();
+ new f();
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-16gs.js b/test/built-ins/Function/15.3.5.4_2-16gs.js
index 8046f5457..bcc4de265 100644
--- a/test/built-ins/Function/15.3.5.4_2-16gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-16gs.js
@@ -11,14 +11,14 @@ flags: [noStrict]
---*/
function f() {
- "use strict";
- gNonStrict();
+ "use strict";
+ gNonStrict();
}
assert.throws(TypeError, function() {
- new f();
+ new f();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-17gs.js b/test/built-ins/Function/15.3.5.4_2-17gs.js
index 4a911e805..2aa9d93b0 100644
--- a/test/built-ins/Function/15.3.5.4_2-17gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-17gs.js
@@ -10,14 +10,14 @@ description: >
flags: [onlyStrict]
---*/
-var f = function () {
- gNonStrict();
+var f = function() {
+ gNonStrict();
}
assert.throws(TypeError, function() {
- new f();
+ new f();
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-18gs.js b/test/built-ins/Function/15.3.5.4_2-18gs.js
index 01aba8242..87b858905 100644
--- a/test/built-ins/Function/15.3.5.4_2-18gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-18gs.js
@@ -10,15 +10,15 @@ description: >
flags: [noStrict]
---*/
-var f = function () {
- "use strict";
- gNonStrict();
+var f = function() {
+ "use strict";
+ gNonStrict();
}
assert.throws(TypeError, function() {
- new f();
+ new f();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-19gs.js b/test/built-ins/Function/15.3.5.4_2-19gs.js
index be861cf0c..71aba8065 100644
--- a/test/built-ins/Function/15.3.5.4_2-19gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-19gs.js
@@ -11,11 +11,11 @@ flags: [onlyStrict]
---*/
assert.throws(TypeError, function() {
- var obj = new (function () {
- gNonStrict();
- });
+ var obj = new(function() {
+ gNonStrict();
+ });
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-1gs.js b/test/built-ins/Function/15.3.5.4_2-1gs.js
index 302881fcc..97d6b0615 100644
--- a/test/built-ins/Function/15.3.5.4_2-1gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-1gs.js
@@ -10,13 +10,13 @@ flags: [onlyStrict]
---*/
function f() {
- gNonStrict();
+ gNonStrict();
}
assert.throws(TypeError, function() {
- f();
+ f();
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-20gs.js b/test/built-ins/Function/15.3.5.4_2-20gs.js
index 0e2a8219a..579f9624a 100644
--- a/test/built-ins/Function/15.3.5.4_2-20gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-20gs.js
@@ -11,13 +11,13 @@ flags: [noStrict]
---*/
assert.throws(TypeError, function() {
- var obj = new (function () {
- "use strict";
- gNonStrict();
- });
+ var obj = new(function() {
+ "use strict";
+ gNonStrict();
+ });
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-21gs.js b/test/built-ins/Function/15.3.5.4_2-21gs.js
index a99ee52a7..67c4da277 100644
--- a/test/built-ins/Function/15.3.5.4_2-21gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-21gs.js
@@ -11,16 +11,16 @@ flags: [onlyStrict]
---*/
function f1() {
- function f() {
- gNonStrict();
- }
- f();
+ function f() {
+ gNonStrict();
+ }
+ f();
}
assert.throws(TypeError, function() {
- f1();
+ f1();
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-22gs.js b/test/built-ins/Function/15.3.5.4_2-22gs.js
index 363d5b4e2..cd0e1fbae 100644
--- a/test/built-ins/Function/15.3.5.4_2-22gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-22gs.js
@@ -11,16 +11,16 @@ flags: [onlyStrict]
---*/
function f1() {
- var f = function () {
- gNonStrict();
- }
- f();
+ var f = function() {
+ gNonStrict();
+ }
+ f();
}
assert.throws(TypeError, function() {
- f1();
+ f1();
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-23gs.js b/test/built-ins/Function/15.3.5.4_2-23gs.js
index e57bf63ab..f1bc42f74 100644
--- a/test/built-ins/Function/15.3.5.4_2-23gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-23gs.js
@@ -11,15 +11,15 @@ flags: [onlyStrict]
---*/
function f1() {
- (function () {
- gNonStrict();
- })();
+ (function() {
+ gNonStrict();
+ })();
}
assert.throws(TypeError, function() {
- f1();
+ f1();
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-24gs.js b/test/built-ins/Function/15.3.5.4_2-24gs.js
index 327752133..3e7b58f3a 100644
--- a/test/built-ins/Function/15.3.5.4_2-24gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-24gs.js
@@ -10,18 +10,18 @@ description: >
flags: [onlyStrict]
---*/
-var f1 = function () {
- function f() {
- gNonStrict();
- }
- f();
+var f1 = function() {
+ function f() {
+ gNonStrict();
+ }
+ f();
}
assert.throws(TypeError, function() {
- f1();
+ f1();
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-25gs.js b/test/built-ins/Function/15.3.5.4_2-25gs.js
index f4c7b216e..03f885642 100644
--- a/test/built-ins/Function/15.3.5.4_2-25gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-25gs.js
@@ -10,17 +10,17 @@ description: >
flags: [onlyStrict]
---*/
-var f1 = function () {
- var f = function () {
- gNonStrict();
- }
- f();
+var f1 = function() {
+ var f = function() {
+ gNonStrict();
+ }
+ f();
}
assert.throws(TypeError, function() {
- f1();
+ f1();
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-26gs.js b/test/built-ins/Function/15.3.5.4_2-26gs.js
index 0fdee36d2..c37e20a70 100644
--- a/test/built-ins/Function/15.3.5.4_2-26gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-26gs.js
@@ -10,16 +10,16 @@ description: >
flags: [onlyStrict]
---*/
-var f1 = function () {
- (function () {
- gNonStrict();
- })();
+var f1 = function() {
+ (function() {
+ gNonStrict();
+ })();
}
assert.throws(TypeError, function() {
- f1();
+ f1();
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-27gs.js b/test/built-ins/Function/15.3.5.4_2-27gs.js
index 9c3b4388c..ba70939a0 100644
--- a/test/built-ins/Function/15.3.5.4_2-27gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-27gs.js
@@ -11,14 +11,14 @@ flags: [onlyStrict]
---*/
assert.throws(TypeError, function() {
- (function () {
- function f() {
- gNonStrict();
- }
- f();
- })();
+ (function() {
+ function f() {
+ gNonStrict();
+ }
+ f();
+ })();
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-28gs.js b/test/built-ins/Function/15.3.5.4_2-28gs.js
index 70fa7f3ee..3d70c7489 100644
--- a/test/built-ins/Function/15.3.5.4_2-28gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-28gs.js
@@ -11,15 +11,15 @@ flags: [onlyStrict]
---*/
assert.throws(TypeError, function() {
- (function () {
- var f = function () {
- gNonStrict();
- }
- f();
- })();
+ (function() {
+ var f = function() {
+ gNonStrict();
+ }
+ f();
+ })();
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-29gs.js b/test/built-ins/Function/15.3.5.4_2-29gs.js
index 5f792dbb8..5aeff3ea9 100644
--- a/test/built-ins/Function/15.3.5.4_2-29gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-29gs.js
@@ -11,13 +11,13 @@ flags: [onlyStrict]
---*/
assert.throws(TypeError, function() {
- (function () {
- (function () {
- gNonStrict();
- })();
+ (function() {
+ (function() {
+ gNonStrict();
})();
+ })();
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-2gs.js b/test/built-ins/Function/15.3.5.4_2-2gs.js
index fed111eb2..f942fcf19 100644
--- a/test/built-ins/Function/15.3.5.4_2-2gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-2gs.js
@@ -11,14 +11,14 @@ flags: [noStrict]
---*/
function f() {
- "use strict";
- gNonStrict();
+ "use strict";
+ gNonStrict();
}
assert.throws(TypeError, function() {
- f();
+ f();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-30gs.js b/test/built-ins/Function/15.3.5.4_2-30gs.js
index d49e9861e..bec9e4323 100644
--- a/test/built-ins/Function/15.3.5.4_2-30gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-30gs.js
@@ -11,17 +11,18 @@ flags: [noStrict]
---*/
function f1() {
- "use strict";
- function f() {
- gNonStrict();
- }
- f();
+ "use strict";
+
+ function f() {
+ gNonStrict();
+ }
+ f();
}
assert.throws(TypeError, function() {
- f1();
+ f1();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-31gs.js b/test/built-ins/Function/15.3.5.4_2-31gs.js
index 9401b802e..2a041c132 100644
--- a/test/built-ins/Function/15.3.5.4_2-31gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-31gs.js
@@ -11,17 +11,17 @@ flags: [noStrict]
---*/
function f1() {
- "use strict";
- var f = function () {
- gNonStrict();
- }
- f();
+ "use strict";
+ var f = function() {
+ gNonStrict();
+ }
+ f();
}
assert.throws(TypeError, function() {
- f1();
+ f1();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-32gs.js b/test/built-ins/Function/15.3.5.4_2-32gs.js
index 9b5ae34a6..a1300daca 100644
--- a/test/built-ins/Function/15.3.5.4_2-32gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-32gs.js
@@ -11,16 +11,16 @@ flags: [noStrict]
---*/
function f1() {
- "use strict";
- (function () {
- gNonStrict();
- })();
+ "use strict";
+ (function() {
+ gNonStrict();
+ })();
}
assert.throws(TypeError, function() {
- f1();
+ f1();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-33gs.js b/test/built-ins/Function/15.3.5.4_2-33gs.js
index 9f366b3f6..6508770f4 100644
--- a/test/built-ins/Function/15.3.5.4_2-33gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-33gs.js
@@ -10,18 +10,19 @@ description: >
flags: [noStrict]
---*/
-var f1 = function () {
- "use strict";
- function f() {
- gNonStrict();
- }
- f();
+var f1 = function() {
+ "use strict";
+
+ function f() {
+ gNonStrict();
+ }
+ f();
}
assert.throws(TypeError, function() {
- f1();
+ f1();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-34gs.js b/test/built-ins/Function/15.3.5.4_2-34gs.js
index 7c028bcbf..257211176 100644
--- a/test/built-ins/Function/15.3.5.4_2-34gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-34gs.js
@@ -10,18 +10,18 @@ description: >
flags: [noStrict]
---*/
-var f1 = function () {
- "use strict";
- var f = function () {
- gNonStrict();
- }
- f();
+var f1 = function() {
+ "use strict";
+ var f = function() {
+ gNonStrict();
+ }
+ f();
}
assert.throws(TypeError, function() {
- f1();
+ f1();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-35gs.js b/test/built-ins/Function/15.3.5.4_2-35gs.js
index 2c4d8c6c4..f6e683ba2 100644
--- a/test/built-ins/Function/15.3.5.4_2-35gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-35gs.js
@@ -10,17 +10,17 @@ description: >
flags: [noStrict]
---*/
-var f1 = function () {
- "use strict";
- (function () {
- gNonStrict();
- })();
+var f1 = function() {
+ "use strict";
+ (function() {
+ gNonStrict();
+ })();
}
assert.throws(TypeError, function() {
- f1();
+ f1();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-36gs.js b/test/built-ins/Function/15.3.5.4_2-36gs.js
index 5625d5fbf..ded271ba8 100644
--- a/test/built-ins/Function/15.3.5.4_2-36gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-36gs.js
@@ -11,15 +11,16 @@ flags: [noStrict]
---*/
assert.throws(TypeError, function() {
- (function () {
- "use strict";
- function f() {
- gNonStrict();
- }
- f();
- })();
+ (function() {
+ "use strict";
+
+ function f() {
+ gNonStrict();
+ }
+ f();
+ })();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-37gs.js b/test/built-ins/Function/15.3.5.4_2-37gs.js
index d3eab113f..8a515705b 100644
--- a/test/built-ins/Function/15.3.5.4_2-37gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-37gs.js
@@ -11,15 +11,15 @@ flags: [noStrict]
---*/
assert.throws(TypeError, function() {
- (function () {
- "use strict";
- var f = function () {
- gNonStrict();
- }
- f();
- })();
+ (function() {
+ "use strict";
+ var f = function() {
+ gNonStrict();
+ }
+ f();
+ })();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-38gs.js b/test/built-ins/Function/15.3.5.4_2-38gs.js
index d824dc0a2..998fecee0 100644
--- a/test/built-ins/Function/15.3.5.4_2-38gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-38gs.js
@@ -11,14 +11,14 @@ flags: [noStrict]
---*/
assert.throws(TypeError, function() {
- (function () {
- "use strict";
- (function () {
- gNonStrict();
- })();
+ (function() {
+ "use strict";
+ (function() {
+ gNonStrict();
})();
+ })();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-39gs.js b/test/built-ins/Function/15.3.5.4_2-39gs.js
index 5a651dd7b..1f7ee2cca 100644
--- a/test/built-ins/Function/15.3.5.4_2-39gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-39gs.js
@@ -11,17 +11,17 @@ flags: [noStrict]
---*/
function f1() {
- function f() {
- "use strict";
- gNonStrict();
- }
- return f();
+ function f() {
+ "use strict";
+ gNonStrict();
+ }
+ return f();
}
assert.throws(TypeError, function() {
- f1();
+ f1();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-3gs.js b/test/built-ins/Function/15.3.5.4_2-3gs.js
index ec2224106..05378cc29 100644
--- a/test/built-ins/Function/15.3.5.4_2-3gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-3gs.js
@@ -9,14 +9,14 @@ description: >
flags: [onlyStrict]
---*/
-var f = function () {
- gNonStrict();
+var f = function() {
+ gNonStrict();
}
assert.throws(TypeError, function() {
- f();
+ f();
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-40gs.js b/test/built-ins/Function/15.3.5.4_2-40gs.js
index 102b70265..3e616381f 100644
--- a/test/built-ins/Function/15.3.5.4_2-40gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-40gs.js
@@ -11,17 +11,17 @@ flags: [noStrict]
---*/
function f1() {
- var f = function () {
- "use strict";
- gNonStrict();
- }
- return f();
+ var f = function() {
+ "use strict";
+ gNonStrict();
+ }
+ return f();
}
assert.throws(TypeError, function() {
- f1();
+ f1();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-41gs.js b/test/built-ins/Function/15.3.5.4_2-41gs.js
index 2e17cff15..5cf5456b5 100644
--- a/test/built-ins/Function/15.3.5.4_2-41gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-41gs.js
@@ -11,16 +11,16 @@ flags: [noStrict]
---*/
function f1() {
- return (function () {
- "use strict";
- gNonStrict();
- })();
+ return (function() {
+ "use strict";
+ gNonStrict();
+ })();
}
assert.throws(TypeError, function() {
- f1();
+ f1();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-42gs.js b/test/built-ins/Function/15.3.5.4_2-42gs.js
index 43af9ac80..7d5deece0 100644
--- a/test/built-ins/Function/15.3.5.4_2-42gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-42gs.js
@@ -10,18 +10,18 @@ description: >
flags: [noStrict]
---*/
-var f1 = function () {
- function f() {
- "use strict";
- gNonStrict();
- }
- return f();
+var f1 = function() {
+ function f() {
+ "use strict";
+ gNonStrict();
+ }
+ return f();
}
assert.throws(TypeError, function() {
- f1();
+ f1();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-43gs.js b/test/built-ins/Function/15.3.5.4_2-43gs.js
index 40f2e23cb..c09efeb66 100644
--- a/test/built-ins/Function/15.3.5.4_2-43gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-43gs.js
@@ -10,18 +10,18 @@ description: >
flags: [noStrict]
---*/
-var f1 = function () {
- var f = function () {
- "use strict";
- gNonStrict();
- }
- return f();
+var f1 = function() {
+ var f = function() {
+ "use strict";
+ gNonStrict();
+ }
+ return f();
}
assert.throws(TypeError, function() {
- f1();
+ f1();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-44gs.js b/test/built-ins/Function/15.3.5.4_2-44gs.js
index c23e618ab..8ce197b44 100644
--- a/test/built-ins/Function/15.3.5.4_2-44gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-44gs.js
@@ -10,17 +10,17 @@ description: >
flags: [noStrict]
---*/
-var f1 = function () {
- return (function () {
- "use strict";
- gNonStrict();
- })();
+var f1 = function() {
+ return (function() {
+ "use strict";
+ gNonStrict();
+ })();
}
assert.throws(TypeError, function() {
- f1();
+ f1();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-45gs.js b/test/built-ins/Function/15.3.5.4_2-45gs.js
index e2745596d..175bdae72 100644
--- a/test/built-ins/Function/15.3.5.4_2-45gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-45gs.js
@@ -11,15 +11,15 @@ flags: [noStrict]
---*/
assert.throws(TypeError, function() {
- (function () {
- function f() {
- "use strict";
- gNonStrict();
- }
- return f();
- })();
+ (function() {
+ function f() {
+ "use strict";
+ gNonStrict();
+ }
+ return f();
+ })();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-46gs.js b/test/built-ins/Function/15.3.5.4_2-46gs.js
index 6dea39b00..c120259a7 100644
--- a/test/built-ins/Function/15.3.5.4_2-46gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-46gs.js
@@ -11,15 +11,15 @@ flags: [noStrict]
---*/
assert.throws(TypeError, function() {
- (function () {
- var f = function () {
- "use strict";
- gNonStrict();
- }
- return f();
- })();
+ (function() {
+ var f = function() {
+ "use strict";
+ gNonStrict();
+ }
+ return f();
+ })();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-47gs.js b/test/built-ins/Function/15.3.5.4_2-47gs.js
index 180c64dd2..a845ba280 100644
--- a/test/built-ins/Function/15.3.5.4_2-47gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-47gs.js
@@ -11,15 +11,15 @@ flags: [noStrict]
---*/
assert.throws(TypeError, function() {
- (function () {
- return (function () {
- "use strict";
- gNonStrict();
- })();
+ (function() {
+ return (function() {
+ "use strict";
+ gNonStrict();
})();
+ })();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-48gs.js b/test/built-ins/Function/15.3.5.4_2-48gs.js
index 7a06d7280..1b15f29f1 100644
--- a/test/built-ins/Function/15.3.5.4_2-48gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-48gs.js
@@ -9,12 +9,16 @@ description: >
flags: [onlyStrict]
---*/
-var o = { get foo() { gNonStrict(); } }
+var o = {
+ get foo() {
+ gNonStrict();
+ }
+}
assert.throws(TypeError, function() {
- o.foo;
+ o.foo;
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-49gs.js b/test/built-ins/Function/15.3.5.4_2-49gs.js
index a53963530..36b004570 100644
--- a/test/built-ins/Function/15.3.5.4_2-49gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-49gs.js
@@ -10,12 +10,17 @@ description: >
flags: [noStrict]
---*/
-var o = { get foo() { "use strict"; gNonStrict(); } }
+var o = {
+ get foo() {
+ "use strict";
+ gNonStrict();
+ }
+}
assert.throws(TypeError, function() {
- o.foo;
+ o.foo;
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-4gs.js b/test/built-ins/Function/15.3.5.4_2-4gs.js
index 3f03d5202..eae7c646d 100644
--- a/test/built-ins/Function/15.3.5.4_2-4gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-4gs.js
@@ -10,15 +10,15 @@ description: >
flags: [noStrict]
---*/
-var f = function () {
- "use strict";
- gNonStrict();
+var f = function() {
+ "use strict";
+ gNonStrict();
}
assert.throws(TypeError, function() {
- f();
+ f();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-50gs.js b/test/built-ins/Function/15.3.5.4_2-50gs.js
index 2c7ab8abf..30d3c2676 100644
--- a/test/built-ins/Function/15.3.5.4_2-50gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-50gs.js
@@ -9,12 +9,16 @@ description: >
flags: [onlyStrict]
---*/
-var o = { set foo(stuff) { gNonStrict(); } }
+var o = {
+ set foo(stuff) {
+ gNonStrict();
+ }
+}
assert.throws(TypeError, function() {
- o.foo = 7;
+ o.foo = 7;
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-51gs.js b/test/built-ins/Function/15.3.5.4_2-51gs.js
index f087b3180..f99cf0245 100644
--- a/test/built-ins/Function/15.3.5.4_2-51gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-51gs.js
@@ -10,12 +10,17 @@ description: >
flags: [noStrict]
---*/
-var o = { set foo(stuff) { "use strict"; gNonStrict(); } }
+var o = {
+ set foo(stuff) {
+ "use strict";
+ gNonStrict();
+ }
+}
assert.throws(TypeError, function() {
- o.foo = 8;
+ o.foo = 8;
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-52gs.js b/test/built-ins/Function/15.3.5.4_2-52gs.js
index b996eadf7..7bd5c98fd 100644
--- a/test/built-ins/Function/15.3.5.4_2-52gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-52gs.js
@@ -10,12 +10,16 @@ flags: [onlyStrict]
---*/
var o = {};
-Object.defineProperty(o, "foo", { get: function() { gNonStrict(); } });
+Object.defineProperty(o, "foo", {
+ get: function() {
+ gNonStrict();
+ }
+});
assert.throws(TypeError, function() {
- o.foo;
+ o.foo;
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-53gs.js b/test/built-ins/Function/15.3.5.4_2-53gs.js
index 50bfb37e3..662870cbf 100644
--- a/test/built-ins/Function/15.3.5.4_2-53gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-53gs.js
@@ -11,12 +11,17 @@ flags: [noStrict]
---*/
var o = {};
-Object.defineProperty(o, "foo", { get: function() { "use strict"; gNonStrict(); } });
+Object.defineProperty(o, "foo", {
+ get: function() {
+ "use strict";
+ gNonStrict();
+ }
+});
assert.throws(TypeError, function() {
- o.foo;
+ o.foo;
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-54gs.js b/test/built-ins/Function/15.3.5.4_2-54gs.js
index 6182bd6e1..dc45d8916 100644
--- a/test/built-ins/Function/15.3.5.4_2-54gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-54gs.js
@@ -10,12 +10,16 @@ flags: [onlyStrict]
---*/
var o = {};
-Object.defineProperty(o, "foo", { set: function(stuff) { gNonStrict(); } });
+Object.defineProperty(o, "foo", {
+ set: function(stuff) {
+ gNonStrict();
+ }
+});
assert.throws(TypeError, function() {
- o.foo = 9;
+ o.foo = 9;
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-55gs.js b/test/built-ins/Function/15.3.5.4_2-55gs.js
index 9656eecfb..35a776849 100644
--- a/test/built-ins/Function/15.3.5.4_2-55gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-55gs.js
@@ -11,12 +11,17 @@ flags: [noStrict]
---*/
var o = {};
-Object.defineProperty(o, "foo", { set: function(stuff) { "use strict"; gNonStrict(); } });
+Object.defineProperty(o, "foo", {
+ set: function(stuff) {
+ "use strict";
+ gNonStrict();
+ }
+});
assert.throws(TypeError, function() {
- o.foo = 10;
+ o.foo = 10;
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-56gs.js b/test/built-ins/Function/15.3.5.4_2-56gs.js
index ab4190fda..28094f41b 100644
--- a/test/built-ins/Function/15.3.5.4_2-56gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-56gs.js
@@ -10,13 +10,19 @@ description: >
flags: [noStrict]
---*/
-function f() { "use strict"; gNonStrict(); };
-function foo() { return f();}
+function f() {
+ "use strict";
+ gNonStrict();
+};
+
+function foo() {
+ return f();
+}
assert.throws(TypeError, function() {
- foo();
+ foo();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-57gs.js b/test/built-ins/Function/15.3.5.4_2-57gs.js
index 771c4a0bf..4d2be9314 100644
--- a/test/built-ins/Function/15.3.5.4_2-57gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-57gs.js
@@ -10,12 +10,15 @@ description: >
flags: [noStrict]
---*/
-function f() { "use strict"; gNonStrict(); };
+function f() {
+ "use strict";
+ gNonStrict();
+};
assert.throws(TypeError, function() {
- eval("f();");
+ eval("f();");
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-58gs.js b/test/built-ins/Function/15.3.5.4_2-58gs.js
index d903bdc47..796733335 100644
--- a/test/built-ins/Function/15.3.5.4_2-58gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-58gs.js
@@ -10,12 +10,15 @@ description: >
flags: [noStrict]
---*/
-function f() { "use strict"; gNonStrict(); };
+function f() {
+ "use strict";
+ gNonStrict();
+};
assert.throws(TypeError, function() {
- Function("return f();")();
+ Function("return f();")();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-59gs.js b/test/built-ins/Function/15.3.5.4_2-59gs.js
index 75d85d2fd..6df2cdfc9 100644
--- a/test/built-ins/Function/15.3.5.4_2-59gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-59gs.js
@@ -10,12 +10,15 @@ description: >
flags: [noStrict]
---*/
-function f() { "use strict"; gNonStrict(); };
+function f() {
+ "use strict";
+ gNonStrict();
+};
assert.throws(TypeError, function() {
- new Function("return f();")();
+ new Function("return f();")();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-5gs.js b/test/built-ins/Function/15.3.5.4_2-5gs.js
index 6e6f67821..299e8ce1b 100644
--- a/test/built-ins/Function/15.3.5.4_2-5gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-5gs.js
@@ -11,11 +11,11 @@ flags: [onlyStrict]
---*/
assert.throws(TypeError, function() {
- (function () {
- gNonStrict();
- })();
+ (function() {
+ gNonStrict();
+ })();
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-60gs.js b/test/built-ins/Function/15.3.5.4_2-60gs.js
index eed2e180a..2064f51c4 100644
--- a/test/built-ins/Function/15.3.5.4_2-60gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-60gs.js
@@ -10,12 +10,15 @@ description: >
flags: [noStrict]
---*/
-function f() { "use strict"; gNonStrict();};
+function f() {
+ "use strict";
+ gNonStrict();
+};
assert.throws(TypeError, function() {
- f.apply();
+ f.apply();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-61gs.js b/test/built-ins/Function/15.3.5.4_2-61gs.js
index 696449b69..fb1ed900f 100644
--- a/test/built-ins/Function/15.3.5.4_2-61gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-61gs.js
@@ -10,12 +10,15 @@ description: >
flags: [noStrict]
---*/
-function f() { "use strict"; gNonStrict();};
+function f() {
+ "use strict";
+ gNonStrict();
+};
assert.throws(TypeError, function() {
- f.apply(null);
+ f.apply(null);
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-62gs.js b/test/built-ins/Function/15.3.5.4_2-62gs.js
index 57dd44c7a..e2ca68809 100644
--- a/test/built-ins/Function/15.3.5.4_2-62gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-62gs.js
@@ -10,12 +10,15 @@ description: >
flags: [noStrict]
---*/
-function f() { "use strict"; gNonStrict();};
+function f() {
+ "use strict";
+ gNonStrict();
+};
assert.throws(TypeError, function() {
- f.apply(undefined);
+ f.apply(undefined);
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-63gs.js b/test/built-ins/Function/15.3.5.4_2-63gs.js
index 83dbe0b4f..2f8cf457c 100644
--- a/test/built-ins/Function/15.3.5.4_2-63gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-63gs.js
@@ -10,13 +10,16 @@ description: >
flags: [noStrict]
---*/
-function f() { "use strict"; gNonStrict();};
+function f() {
+ "use strict";
+ gNonStrict();
+};
var o = {};
assert.throws(TypeError, function() {
- f.apply(o);
+ f.apply(o);
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-64gs.js b/test/built-ins/Function/15.3.5.4_2-64gs.js
index a95d82a41..b4b18805f 100644
--- a/test/built-ins/Function/15.3.5.4_2-64gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-64gs.js
@@ -11,12 +11,16 @@ flags: [noStrict]
---*/
var global = this;
-function f() { "use strict"; gNonStrict();};
+
+function f() {
+ "use strict";
+ gNonStrict();
+};
assert.throws(TypeError, function() {
- f.apply(global);
+ f.apply(global);
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-65gs.js b/test/built-ins/Function/15.3.5.4_2-65gs.js
index 6062b1d81..7fe4ebbcb 100644
--- a/test/built-ins/Function/15.3.5.4_2-65gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-65gs.js
@@ -10,12 +10,15 @@ description: >
flags: [noStrict]
---*/
-function f() { "use strict"; gNonStrict();};
+function f() {
+ "use strict";
+ gNonStrict();
+};
assert.throws(TypeError, function() {
- f.call();
+ f.call();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-66gs.js b/test/built-ins/Function/15.3.5.4_2-66gs.js
index 1c410c7e7..ef1d045d9 100644
--- a/test/built-ins/Function/15.3.5.4_2-66gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-66gs.js
@@ -10,12 +10,15 @@ description: >
flags: [noStrict]
---*/
-function f() { "use strict"; gNonStrict();};
+function f() {
+ "use strict";
+ gNonStrict();
+};
assert.throws(TypeError, function() {
- f.call(null);
+ f.call(null);
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-67gs.js b/test/built-ins/Function/15.3.5.4_2-67gs.js
index 76308260f..2c1e85967 100644
--- a/test/built-ins/Function/15.3.5.4_2-67gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-67gs.js
@@ -10,12 +10,15 @@ description: >
flags: [noStrict]
---*/
-function f() { "use strict"; gNonStrict();};
+function f() {
+ "use strict";
+ gNonStrict();
+};
assert.throws(TypeError, function() {
- f.call(undefined);
+ f.call(undefined);
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-68gs.js b/test/built-ins/Function/15.3.5.4_2-68gs.js
index 0f23492bd..37667415d 100644
--- a/test/built-ins/Function/15.3.5.4_2-68gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-68gs.js
@@ -10,13 +10,16 @@ description: >
flags: [noStrict]
---*/
-function f() { "use strict"; gNonStrict();};
+function f() {
+ "use strict";
+ gNonStrict();
+};
var o = {};
assert.throws(TypeError, function() {
- f.call(o);
+ f.call(o);
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-69gs.js b/test/built-ins/Function/15.3.5.4_2-69gs.js
index 0572d8603..664a8003d 100644
--- a/test/built-ins/Function/15.3.5.4_2-69gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-69gs.js
@@ -11,12 +11,16 @@ flags: [noStrict]
---*/
var global = this;
-function f() { "use strict"; gNonStrict();};
+
+function f() {
+ "use strict";
+ gNonStrict();
+};
assert.throws(TypeError, function() {
- f.call(this);
+ f.call(this);
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-6gs.js b/test/built-ins/Function/15.3.5.4_2-6gs.js
index 425f3dcc8..5a3ca1b07 100644
--- a/test/built-ins/Function/15.3.5.4_2-6gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-6gs.js
@@ -11,13 +11,13 @@ flags: [noStrict]
---*/
assert.throws(TypeError, function() {
- (function () {
- "use strict";
- gNonStrict();
- })();
+ (function() {
+ "use strict";
+ gNonStrict();
+ })();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-70gs.js b/test/built-ins/Function/15.3.5.4_2-70gs.js
index 0ce9f72af..67c58c301 100644
--- a/test/built-ins/Function/15.3.5.4_2-70gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-70gs.js
@@ -10,12 +10,15 @@ description: >
flags: [noStrict]
---*/
-function f() { "use strict"; gNonStrict();};
+function f() {
+ "use strict";
+ gNonStrict();
+};
assert.throws(TypeError, function() {
- f.bind()();
+ f.bind()();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-71gs.js b/test/built-ins/Function/15.3.5.4_2-71gs.js
index 3c3a1567e..73977b200 100644
--- a/test/built-ins/Function/15.3.5.4_2-71gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-71gs.js
@@ -10,12 +10,15 @@ description: >
flags: [noStrict]
---*/
-function f() { "use strict"; gNonStrict();};
+function f() {
+ "use strict";
+ gNonStrict();
+};
assert.throws(TypeError, function() {
- f.bind(null)();
+ f.bind(null)();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-72gs.js b/test/built-ins/Function/15.3.5.4_2-72gs.js
index 7cd70c9da..a2db6d625 100644
--- a/test/built-ins/Function/15.3.5.4_2-72gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-72gs.js
@@ -10,12 +10,15 @@ description: >
flags: [noStrict]
---*/
-function f() { "use strict"; gNonStrict();};
+function f() {
+ "use strict";
+ gNonStrict();
+};
assert.throws(TypeError, function() {
- f.bind(undefined)();
+ f.bind(undefined)();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-73gs.js b/test/built-ins/Function/15.3.5.4_2-73gs.js
index c616c07e4..0c463d764 100644
--- a/test/built-ins/Function/15.3.5.4_2-73gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-73gs.js
@@ -10,13 +10,16 @@ description: >
flags: [noStrict]
---*/
-function f() { "use strict"; gNonStrict();};
+function f() {
+ "use strict";
+ gNonStrict();
+};
var o = {};
assert.throws(TypeError, function() {
- f.bind(o)();
+ f.bind(o)();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-74gs.js b/test/built-ins/Function/15.3.5.4_2-74gs.js
index e1c730c23..4918478c2 100644
--- a/test/built-ins/Function/15.3.5.4_2-74gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-74gs.js
@@ -11,12 +11,16 @@ flags: [noStrict]
---*/
var global = this;
-function f() { "use strict"; gNonStrict();};
+
+function f() {
+ "use strict";
+ gNonStrict();
+};
assert.throws(TypeError, function() {
- f.bind(global)();
+ f.bind(global)();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-75gs.js b/test/built-ins/Function/15.3.5.4_2-75gs.js
index b39e30f70..8f02e17e7 100644
--- a/test/built-ins/Function/15.3.5.4_2-75gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-75gs.js
@@ -11,11 +11,17 @@ flags: [noStrict]
features: [caller]
---*/
-function f() { return gNonStrict();};
-function foo() { "use strict"; f();}
-foo();
+function f() {
+ return gNonStrict();
+};
+
+function foo() {
+ "use strict";
+ f();
+}
+foo();
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-76gs.js b/test/built-ins/Function/15.3.5.4_2-76gs.js
index 9da118714..51bb190b2 100644
--- a/test/built-ins/Function/15.3.5.4_2-76gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-76gs.js
@@ -11,10 +11,15 @@ flags: [noStrict]
features: [caller]
---*/
-function f() { return gNonStrict();};
-(function () {"use strict"; return eval("f();"); })();
+function f() {
+ return gNonStrict();
+};
+(function() {
+ "use strict";
+ return eval("f();");
+})();
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-77gs.js b/test/built-ins/Function/15.3.5.4_2-77gs.js
index 572e38205..fa9345310 100644
--- a/test/built-ins/Function/15.3.5.4_2-77gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-77gs.js
@@ -11,10 +11,15 @@ flags: [noStrict]
features: [caller]
---*/
-function f() {return gNonStrict();};
-(function () {"use strict"; Function("return f();")(); })();
+function f() {
+ return gNonStrict();
+};
+(function() {
+ "use strict";
+ Function("return f();")();
+})();
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-78gs.js b/test/built-ins/Function/15.3.5.4_2-78gs.js
index 80aa51604..7ee58dd31 100644
--- a/test/built-ins/Function/15.3.5.4_2-78gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-78gs.js
@@ -11,10 +11,15 @@ flags: [noStrict]
features: [caller]
---*/
-function f() { return gNonStrict();};
-(function () {"use strict"; return new Function("return f();")(); })();
+function f() {
+ return gNonStrict();
+};
+(function() {
+ "use strict";
+ return new Function("return f();")();
+})();
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-79gs.js b/test/built-ins/Function/15.3.5.4_2-79gs.js
index e0814d0d2..6754f8fd0 100644
--- a/test/built-ins/Function/15.3.5.4_2-79gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-79gs.js
@@ -11,10 +11,15 @@ flags: [noStrict]
features: [caller]
---*/
-function f() { return gNonStrict();};
-(function () {"use strict"; f.apply();})();
+function f() {
+ return gNonStrict();
+};
+(function() {
+ "use strict";
+ f.apply();
+})();
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-7gs.js b/test/built-ins/Function/15.3.5.4_2-7gs.js
index f66abe159..9630356d3 100644
--- a/test/built-ins/Function/15.3.5.4_2-7gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-7gs.js
@@ -12,9 +12,9 @@ flags: [onlyStrict]
var f = Function("return gNonStrict();");
assert.throws(TypeError, function() {
- f();
+ f();
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-80gs.js b/test/built-ins/Function/15.3.5.4_2-80gs.js
index aa03f3ec2..17efe2a02 100644
--- a/test/built-ins/Function/15.3.5.4_2-80gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-80gs.js
@@ -11,10 +11,15 @@ flags: [noStrict]
features: [caller]
---*/
-function f() { return gNonStrict();};
-(function () {"use strict"; f.apply(null); })();
+function f() {
+ return gNonStrict();
+};
+(function() {
+ "use strict";
+ f.apply(null);
+})();
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-81gs.js b/test/built-ins/Function/15.3.5.4_2-81gs.js
index e3f028da4..d4a12ba2f 100644
--- a/test/built-ins/Function/15.3.5.4_2-81gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-81gs.js
@@ -11,10 +11,15 @@ flags: [noStrict]
features: [caller]
---*/
-function f() { return gNonStrict();};
-(function () {"use strict"; f.apply(undefined); })();
+function f() {
+ return gNonStrict();
+};
+(function() {
+ "use strict";
+ f.apply(undefined);
+})();
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-82gs.js b/test/built-ins/Function/15.3.5.4_2-82gs.js
index 7a78c1726..101a01f50 100644
--- a/test/built-ins/Function/15.3.5.4_2-82gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-82gs.js
@@ -11,11 +11,16 @@ flags: [noStrict]
features: [caller]
---*/
-function f() { return gNonStrict();};
+function f() {
+ return gNonStrict();
+};
var o = {};
-(function () {"use strict"; f.apply(o); })();
+(function() {
+ "use strict";
+ f.apply(o);
+})();
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-83gs.js b/test/built-ins/Function/15.3.5.4_2-83gs.js
index 940e7d7e4..a7ba40be0 100644
--- a/test/built-ins/Function/15.3.5.4_2-83gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-83gs.js
@@ -12,10 +12,16 @@ features: [caller]
---*/
var global = this;
-function f() { return gNonStrict();};
-(function () {"use strict"; f.apply(global); })();
+
+function f() {
+ return gNonStrict();
+};
+(function() {
+ "use strict";
+ f.apply(global);
+})();
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-84gs.js b/test/built-ins/Function/15.3.5.4_2-84gs.js
index ecc1e152d..0246f8b6a 100644
--- a/test/built-ins/Function/15.3.5.4_2-84gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-84gs.js
@@ -11,10 +11,15 @@ flags: [noStrict]
features: [caller]
---*/
-function f() { return gNonStrict();};
-(function () {"use strict"; f.call();})();
+function f() {
+ return gNonStrict();
+};
+(function() {
+ "use strict";
+ f.call();
+})();
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-85gs.js b/test/built-ins/Function/15.3.5.4_2-85gs.js
index ff899ce7c..8dcb404c6 100644
--- a/test/built-ins/Function/15.3.5.4_2-85gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-85gs.js
@@ -11,10 +11,15 @@ flags: [noStrict]
features: [caller]
---*/
-function f() { return gNonStrict();};
-(function () {"use strict"; f.call(null);})();
+function f() {
+ return gNonStrict();
+};
+(function() {
+ "use strict";
+ f.call(null);
+})();
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-86gs.js b/test/built-ins/Function/15.3.5.4_2-86gs.js
index c617f4eb7..f8375dd90 100644
--- a/test/built-ins/Function/15.3.5.4_2-86gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-86gs.js
@@ -11,10 +11,15 @@ flags: [noStrict]
features: [caller]
---*/
-function f() { return gNonStrict();};
-(function () {"use strict"; f.call(undefined); })();
+function f() {
+ return gNonStrict();
+};
+(function() {
+ "use strict";
+ f.call(undefined);
+})();
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-87gs.js b/test/built-ins/Function/15.3.5.4_2-87gs.js
index c2ba65142..37e027c76 100644
--- a/test/built-ins/Function/15.3.5.4_2-87gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-87gs.js
@@ -11,11 +11,16 @@ flags: [noStrict]
features: [caller]
---*/
-function f() { return gNonStrict();};
+function f() {
+ return gNonStrict();
+};
var o = {};
-(function () {"use strict"; f.call(o); })();
+(function() {
+ "use strict";
+ f.call(o);
+})();
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-88gs.js b/test/built-ins/Function/15.3.5.4_2-88gs.js
index 7d1b0825c..58ee449f0 100644
--- a/test/built-ins/Function/15.3.5.4_2-88gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-88gs.js
@@ -12,10 +12,16 @@ features: [caller]
---*/
var global = this;
-function f() { return gNonStrict();};
-(function () {"use strict"; f.call(global); })();
+
+function f() {
+ return gNonStrict();
+};
+(function() {
+ "use strict";
+ f.call(global);
+})();
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-89gs.js b/test/built-ins/Function/15.3.5.4_2-89gs.js
index ec574b3a7..ed310abed 100644
--- a/test/built-ins/Function/15.3.5.4_2-89gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-89gs.js
@@ -11,10 +11,15 @@ flags: [noStrict]
features: [caller]
---*/
-function f() { return gNonStrict();};
-(function () {"use strict"; f.bind()();})();
+function f() {
+ return gNonStrict();
+};
+(function() {
+ "use strict";
+ f.bind()();
+})();
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-8gs.js b/test/built-ins/Function/15.3.5.4_2-8gs.js
index dd20678dd..437514a5a 100644
--- a/test/built-ins/Function/15.3.5.4_2-8gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-8gs.js
@@ -13,9 +13,9 @@ flags: [noStrict]
var f = Function("\"use strict\";\ngNonStrict();");
assert.throws(TypeError, function() {
- f();
+ f();
});
function gNonStrict() {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-90gs.js b/test/built-ins/Function/15.3.5.4_2-90gs.js
index bbab075d1..8ad718946 100644
--- a/test/built-ins/Function/15.3.5.4_2-90gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-90gs.js
@@ -11,10 +11,15 @@ flags: [noStrict]
features: [caller]
---*/
-function f() { return gNonStrict();};
-(function () {"use strict"; f.bind(null)(); })();
+function f() {
+ return gNonStrict();
+};
+(function() {
+ "use strict";
+ f.bind(null)();
+})();
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-91gs.js b/test/built-ins/Function/15.3.5.4_2-91gs.js
index 1049047f0..ccab0095c 100644
--- a/test/built-ins/Function/15.3.5.4_2-91gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-91gs.js
@@ -11,10 +11,15 @@ flags: [noStrict]
features: [caller]
---*/
-function f() { return gNonStrict();};
-(function () {"use strict"; f.bind(undefined)(); })();
+function f() {
+ return gNonStrict();
+};
+(function() {
+ "use strict";
+ f.bind(undefined)();
+})();
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-92gs.js b/test/built-ins/Function/15.3.5.4_2-92gs.js
index 8ff2abc39..9a2f49972 100644
--- a/test/built-ins/Function/15.3.5.4_2-92gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-92gs.js
@@ -11,11 +11,16 @@ flags: [noStrict]
features: [caller]
---*/
-function f() { return gNonStrict();};
+function f() {
+ return gNonStrict();
+};
var o = {};
-(function () {"use strict"; f.bind(o)(); })();
+(function() {
+ "use strict";
+ f.bind(o)();
+})();
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-93gs.js b/test/built-ins/Function/15.3.5.4_2-93gs.js
index bad743269..8fe3b1120 100644
--- a/test/built-ins/Function/15.3.5.4_2-93gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-93gs.js
@@ -12,10 +12,16 @@ features: [caller]
---*/
var global = this;
-function f() { return gNonStrict();};
-(function () {"use strict"; f.bind(global)(); })();
+
+function f() {
+ return gNonStrict();
+};
+(function() {
+ "use strict";
+ f.bind(global)();
+})();
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-94gs.js b/test/built-ins/Function/15.3.5.4_2-94gs.js
index fefc31e18..81bcd689a 100644
--- a/test/built-ins/Function/15.3.5.4_2-94gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-94gs.js
@@ -10,15 +10,15 @@ description: >
flags: [noStrict]
---*/
-var gNonStrict = function () {
- return gNonStrict.caller || gNonStrict.caller.throwTypeError;
+var gNonStrict = function() {
+ return gNonStrict.caller || gNonStrict.caller.throwTypeError;
}
function f() {
- "use strict";
- gNonStrict();
+ "use strict";
+ gNonStrict();
}
assert.throws(TypeError, function() {
- f();
+ f();
});
diff --git a/test/built-ins/Function/15.3.5.4_2-95gs.js b/test/built-ins/Function/15.3.5.4_2-95gs.js
index 836017045..34f7c5b64 100644
--- a/test/built-ins/Function/15.3.5.4_2-95gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-95gs.js
@@ -13,10 +13,10 @@ flags: [noStrict]
var gNonStrict = Function("return gNonStrict.caller || gNonStrict.caller.throwTypeError;");
function f() {
- "use strict";
- gNonStrict();
+ "use strict";
+ gNonStrict();
}
assert.throws(TypeError, function() {
- f();
+ f();
});
diff --git a/test/built-ins/Function/15.3.5.4_2-96gs.js b/test/built-ins/Function/15.3.5.4_2-96gs.js
index bb601c08f..03dc813f5 100644
--- a/test/built-ins/Function/15.3.5.4_2-96gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-96gs.js
@@ -10,19 +10,19 @@ description: >
flags: [noStrict]
---*/
-var o = {
- get gNonStrict() {
- var tmp = Object.getOwnPropertyDescriptor(o, "gNonStrict").get;
- return tmp.caller || tmp.caller.throwTypeError;
- }
+var o = {
+ get gNonStrict() {
+ var tmp = Object.getOwnPropertyDescriptor(o, "gNonStrict").get;
+ return tmp.caller || tmp.caller.throwTypeError;
+ }
};
function f() {
- "use strict";
- return o.gNonStrict;
+ "use strict";
+ return o.gNonStrict;
}
assert.throws(TypeError, function() {
- f();
+ f();
});
diff --git a/test/built-ins/Function/15.3.5.4_2-97gs.js b/test/built-ins/Function/15.3.5.4_2-97gs.js
index 7c4d7474b..61c923331 100644
--- a/test/built-ins/Function/15.3.5.4_2-97gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-97gs.js
@@ -13,14 +13,14 @@ flags: [noStrict]
var gNonStrict = gNonStrictBindee.bind(null);
function f() {
- "use strict";
- gNonStrict();
+ "use strict";
+ gNonStrict();
}
assert.throws(TypeError, function() {
- f();
+ f();
});
function gNonStrictBindee() {
- return gNonStrictBindee.caller || gNonStrictBindee.caller.throwTypeError;
+ return gNonStrictBindee.caller || gNonStrictBindee.caller.throwTypeError;
}
diff --git a/test/built-ins/Function/15.3.5.4_2-9gs.js b/test/built-ins/Function/15.3.5.4_2-9gs.js
index 08fbd5cb3..07c0decbc 100644
--- a/test/built-ins/Function/15.3.5.4_2-9gs.js
+++ b/test/built-ins/Function/15.3.5.4_2-9gs.js
@@ -13,9 +13,9 @@ flags: [onlyStrict]
var f = new Function("return gNonStrict();");
assert.throws(TypeError, function() {
- f();
+ f();
});
function gNonStrict() {
- return gNonStrict.caller;
+ return gNonStrict.caller;
}
diff --git a/test/built-ins/Function/S10.1.1_A1_T3.js b/test/built-ins/Function/S10.1.1_A1_T3.js
index 503a17fd3..3a9d96b63 100644
--- a/test/built-ins/Function/S10.1.1_A1_T3.js
+++ b/test/built-ins/Function/S10.1.1_A1_T3.js
@@ -12,6 +12,8 @@ description: >
---*/
//CHECK#1
-var x=new function f1(){return 1;};
-if(typeof(x.constructor)!=="function")
+var x = new function f1() {
+ return 1;
+};
+if (typeof(x.constructor) !== "function")
$ERROR('#1: typeof(x.constructor)!=="function"');
diff --git a/test/built-ins/Function/S15.3.1_A1_T1.js b/test/built-ins/Function/S15.3.1_A1_T1.js
index 43129631d..8175c337d 100644
--- a/test/built-ins/Function/S15.3.1_A1_T1.js
+++ b/test/built-ins/Function/S15.3.1_A1_T1.js
@@ -12,7 +12,7 @@ description: Create simple functions and check returned values
var f = Function("return arguments[0];");
//CHECK#1
-if (!(f instanceof Function)){
+if (!(f instanceof Function)) {
$ERROR('#1: f instanceof Function');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A1_T1.js b/test/built-ins/Function/S15.3.2.1_A1_T1.js
index 12c037b04..52e20e1fd 100644
--- a/test/built-ins/Function/S15.3.2.1_A1_T1.js
+++ b/test/built-ins/Function/S15.3.2.1_A1_T1.js
@@ -14,7 +14,11 @@ es5id: 15.3.2.1_A1_T1
description: "The body of the function is \"{toString:function(){throw 7;}}\""
---*/
-var body = {toString:function(){throw 7;}}
+var body = {
+ toString: function() {
+ throw 7;
+ }
+}
//CHECK#1
try {
@@ -22,6 +26,6 @@ try {
$ERROR('#1: When the Function constructor is called with one argument then body be that argument the following step are taken: call ToString(body)');
} catch (e) {
if (e !== 7) {
- $ERROR('#1.1: When the Function constructor is called with one argument then body be that argument the following step are taken: call ToString(body)');
+ $ERROR('#1.1: When the Function constructor is called with one argument then body be that argument the following step are taken: call ToString(body)');
}
}
diff --git a/test/built-ins/Function/S15.3.2.1_A1_T10.js b/test/built-ins/Function/S15.3.2.1_A1_T10.js
index f1ed2fe5c..764e5b2a0 100644
--- a/test/built-ins/Function/S15.3.2.1_A1_T10.js
+++ b/test/built-ins/Function/S15.3.2.1_A1_T10.js
@@ -18,7 +18,7 @@ description: Value of the function constructor argument is "null"
try {
var f = new Function(null);
} catch (e) {
- $ERROR('#1: test fails with error '+e);
+ $ERROR('#1: test fails with error ' + e);
}
//CHECK#2
diff --git a/test/built-ins/Function/S15.3.2.1_A1_T11.js b/test/built-ins/Function/S15.3.2.1_A1_T11.js
index 18baa8e9a..74248f283 100644
--- a/test/built-ins/Function/S15.3.2.1_A1_T11.js
+++ b/test/built-ins/Function/S15.3.2.1_A1_T11.js
@@ -18,7 +18,7 @@ description: Value of the function constructor argument is "undefined"
try {
var f = new Function(undefined);
} catch (e) {
- $ERROR('#1: test failed with error '+e);
+ $ERROR('#1: test failed with error ' + e);
}
//CHECK#2
diff --git a/test/built-ins/Function/S15.3.2.1_A1_T12.js b/test/built-ins/Function/S15.3.2.1_A1_T12.js
index bc4646e08..81d816f38 100644
--- a/test/built-ins/Function/S15.3.2.1_A1_T12.js
+++ b/test/built-ins/Function/S15.3.2.1_A1_T12.js
@@ -18,7 +18,7 @@ description: Value of the function constructor argument is "void 0"
try {
var f = new Function(void 0);
} catch (e) {
- $ERROR('#1: test failed with error '+e);
+ $ERROR('#1: test failed with error ' + e);
}
//CHECK#2
@@ -27,6 +27,6 @@ if (f.constructor !== Function) {
}
//CHECK#3
-if (f()!==undefined) {
+if (f() !== undefined) {
$ERROR('#3: When the Function constructor is called with one argument then body be that argument the following steps are taken...');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A1_T13.js b/test/built-ins/Function/S15.3.2.1_A1_T13.js
index fbc01fc89..09942b2c5 100644
--- a/test/built-ins/Function/S15.3.2.1_A1_T13.js
+++ b/test/built-ins/Function/S15.3.2.1_A1_T13.js
@@ -17,9 +17,9 @@ description: Value of the function constructor argument is "{}"
//CHECK#1
try {
var f = new Function({});
- $ERROR('#1: test failed with error '+e);
+ $ERROR('#1: test failed with error ' + e);
} catch (e) {
if (!(e instanceof SyntaxError)) {
- $ERROR('#1.1: If body is not parsable as FunctionBody then throw a SyntaxError exception');
+ $ERROR('#1.1: If body is not parsable as FunctionBody then throw a SyntaxError exception');
}
}
diff --git a/test/built-ins/Function/S15.3.2.1_A1_T2.js b/test/built-ins/Function/S15.3.2.1_A1_T2.js
index 0e971af37..a1424960b 100644
--- a/test/built-ins/Function/S15.3.2.1_A1_T2.js
+++ b/test/built-ins/Function/S15.3.2.1_A1_T2.js
@@ -16,13 +16,17 @@ description: >
1;";}}"
---*/
-var body={toString:function(){return "return 1;";}};
+var body = {
+ toString: function() {
+ return "return 1;";
+ }
+};
//CHECK#1
try {
- var f = new Function(body);
+ var f = new Function(body);
} catch (e) {
- $ERROR('#1: test failed with error '+e);
+ $ERROR('#1: test failed with error ' + e);
}
//CHECK#2
@@ -31,6 +35,6 @@ if (f.constructor !== Function) {
}
//CHECK#3
-if (f()!==1) {
+if (f() !== 1) {
$ERROR('#3: hen the Function constructor is called with one argument then body be that argument the following steps are taken...');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A1_T3.js b/test/built-ins/Function/S15.3.2.1_A1_T3.js
index aec811fe1..25e9f5493 100644
--- a/test/built-ins/Function/S15.3.2.1_A1_T3.js
+++ b/test/built-ins/Function/S15.3.2.1_A1_T3.js
@@ -18,7 +18,7 @@ description: Value of the function constructor argument is 1
try {
var f = new Function(1);
} catch (e) {
- $ERROR('#1: test failed with error '+e);
+ $ERROR('#1: test failed with error ' + e);
}
//CHECK#2
@@ -27,6 +27,6 @@ if (f.constructor !== Function) {
}
//CHECK#3
-if (f()!==undefined) {
+if (f() !== undefined) {
$ERROR('#3: When the Function constructor is called with one argument then body be that argument the following steps are taken...');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A1_T4.js b/test/built-ins/Function/S15.3.2.1_A1_T4.js
index 2d862279d..2b9be51a5 100644
--- a/test/built-ins/Function/S15.3.2.1_A1_T4.js
+++ b/test/built-ins/Function/S15.3.2.1_A1_T4.js
@@ -20,7 +20,7 @@ description: >
try {
var f = new Function(x);
} catch (e) {
- $ERROR('#1: test failed with error '+e);
+ $ERROR('#1: test failed with error ' + e);
}
//CHECK#2
@@ -29,7 +29,7 @@ if (f.constructor !== Function) {
}
//CHECK#3
-if (f()!==undefined) {
+if (f() !== undefined) {
$ERROR('#3: When the Function constructor is called with one argument then body be that argument the following steps are taken...');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A1_T5.js b/test/built-ins/Function/S15.3.2.1_A1_T5.js
index 9cde6597f..c7c3df4c0 100644
--- a/test/built-ins/Function/S15.3.2.1_A1_T5.js
+++ b/test/built-ins/Function/S15.3.2.1_A1_T5.js
@@ -22,7 +22,7 @@ var body = Object("return \'A\'");
try {
var f = new Function(body);
} catch (e) {
- $ERROR('#1: test failed with error '+e);
+ $ERROR('#1: test failed with error ' + e);
}
//CHECK#2
@@ -31,6 +31,6 @@ if (f.constructor !== Function) {
}
//CHECK#3
-if (f()!=="\u0041") {
+if (f() !== "\u0041") {
$ERROR('#3: When the Function constructor is called with one argument then body be that argument the following steps are taken...');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A1_T6.js b/test/built-ins/Function/S15.3.2.1_A1_T6.js
index 9ed5398b4..548718444 100644
--- a/test/built-ins/Function/S15.3.2.1_A1_T6.js
+++ b/test/built-ins/Function/S15.3.2.1_A1_T6.js
@@ -20,7 +20,7 @@ description: >
try {
var f = new Function("return true;");
} catch (e) {
- $ERROR('#1: test failed with error '+e);
+ $ERROR('#1: test failed with error ' + e);
}
//CHECK#2
diff --git a/test/built-ins/Function/S15.3.2.1_A1_T7.js b/test/built-ins/Function/S15.3.2.1_A1_T7.js
index 23bde2777..bb68c4257 100644
--- a/test/built-ins/Function/S15.3.2.1_A1_T7.js
+++ b/test/built-ins/Function/S15.3.2.1_A1_T7.js
@@ -20,7 +20,7 @@ var body = new Object(1);
try {
var f = new Function(body);
} catch (e) {
- $ERROR('#1: test failed with error '+e);
+ $ERROR('#1: test failed with error ' + e);
}
//CHECK#2
@@ -29,6 +29,6 @@ if (f.constructor !== Function) {
}
//CHECK#3
-if (f()!==undefined) {
+if (f() !== undefined) {
$ERROR('#3: When the Function constructor is called with one argument then body be that argument the following steps are taken...');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A1_T8.js b/test/built-ins/Function/S15.3.2.1_A1_T8.js
index 0b1c5d4db..e17847cbd 100644
--- a/test/built-ins/Function/S15.3.2.1_A1_T8.js
+++ b/test/built-ins/Function/S15.3.2.1_A1_T8.js
@@ -22,6 +22,6 @@ try {
$ERROR('#1: If body is not parsable as FunctionBody then throw a SyntaxError exception');
} catch (e) {
if (!(e instanceof SyntaxError)) {
- $ERROR('#1.1: If body is not parsable as FunctionBody then throw a SyntaxError exception');
+ $ERROR('#1.1: If body is not parsable as FunctionBody then throw a SyntaxError exception');
}
}
diff --git a/test/built-ins/Function/S15.3.2.1_A2_T1.js b/test/built-ins/Function/S15.3.2.1_A2_T1.js
index 8316ce12a..e007a4af0 100644
--- a/test/built-ins/Function/S15.3.2.1_A2_T1.js
+++ b/test/built-ins/Function/S15.3.2.1_A2_T1.js
@@ -19,11 +19,11 @@ try {
}
//CHECK#2
-if (!(f instanceof Function)){
+if (!(f instanceof Function)) {
$ERROR('#2: It is permissible but not necessary to have one argument for each formal parameter to be specified');
}
//CHECK#3
-if (f(1,2,3) !== 6) {
+if (f(1, 2, 3) !== 6) {
$ERROR('#3: It is permissible but not necessary to have one argument for each formal parameter to be specified');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A2_T2.js b/test/built-ins/Function/S15.3.2.1_A2_T2.js
index e02bc648f..241712a5b 100644
--- a/test/built-ins/Function/S15.3.2.1_A2_T2.js
+++ b/test/built-ins/Function/S15.3.2.1_A2_T2.js
@@ -19,11 +19,11 @@ try {
}
//CHECK#2
-if (!(f instanceof Function)){
+if (!(f instanceof Function)) {
$ERROR('#2: It is permissible but not necessary to have one argument for each formal parameter to be specified');
}
//CHECK#3
-if (f("AB","BA",1) !== "ABBA1") {
+if (f("AB", "BA", 1) !== "ABBA1") {
$ERROR('#3: It is permissible but not necessary to have one argument for each formal parameter to be specified');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A2_T3.js b/test/built-ins/Function/S15.3.2.1_A2_T3.js
index afa0b05de..dee237ec5 100644
--- a/test/built-ins/Function/S15.3.2.1_A2_T3.js
+++ b/test/built-ins/Function/S15.3.2.1_A2_T3.js
@@ -19,11 +19,11 @@ try {
}
//CHECK#2
-if (!(f instanceof Function)){
+if (!(f instanceof Function)) {
$ERROR('#2: It is permissible but not necessary to have one argument for each formal parameter to be specified');
}
//CHECK#3
-if (f(1,1,"ABBA") !== "2ABBA") {
+if (f(1, 1, "ABBA") !== "2ABBA") {
$ERROR('#3: It is permissible but not necessary to have one argument for each formal parameter to be specified');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A2_T4.js b/test/built-ins/Function/S15.3.2.1_A2_T4.js
index 973be30e4..d2e54ebb2 100644
--- a/test/built-ins/Function/S15.3.2.1_A2_T4.js
+++ b/test/built-ins/Function/S15.3.2.1_A2_T4.js
@@ -11,9 +11,13 @@ description: >
various results
---*/
-var i=0;
+var i = 0;
-var p={toString:function(){return "arg"+(++i);}};
+var p = {
+ toString: function() {
+ return "arg" + (++i);
+ }
+};
//CHECK#1
try {
@@ -23,11 +27,11 @@ try {
}
//CHECK#2
-if (!(f instanceof Function)){
+if (!(f instanceof Function)) {
$ERROR('#2: It is permissible but not necessary to have one argument for each formal parameter to be specified');
}
//CHECK#3
-if (f(4,"2","QUESTION") !== "42QUESTION") {
+if (f(4, "2", "QUESTION") !== "42QUESTION") {
$ERROR('#3: It is permissible but not necessary to have one argument for each formal parameter to be specified');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A2_T5.js b/test/built-ins/Function/S15.3.2.1_A2_T5.js
index 70ca03e73..bc9b1f0b4 100644
--- a/test/built-ins/Function/S15.3.2.1_A2_T5.js
+++ b/test/built-ins/Function/S15.3.2.1_A2_T5.js
@@ -11,23 +11,27 @@ description: >
various results and a concotenation of strings
---*/
-var i=0;
+var i = 0;
-var p={toString:function(){return "arg"+(++i)}};
+var p = {
+ toString: function() {
+ return "arg" + (++i)
+ }
+};
//CHECK#1
try {
- var f = Function(p+","+p,p, "return arg1+arg2+arg3;");
+ var f = Function(p + "," + p, p, "return arg1+arg2+arg3;");
} catch (e) {
$ERROR('#1: test failed');
}
//CHECK#2
-if (!(f instanceof Function)){
+if (!(f instanceof Function)) {
$ERROR('#2: It is permissible but not necessary to have one argument for each formal parameter to be specified');
}
//CHECK#3
-if (f("",1,2) !== "12") {
+if (f("", 1, 2) !== "12") {
$ERROR('#3: It is permissible but not necessary to have one argument for each formal parameter to be specified');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A2_T6.js b/test/built-ins/Function/S15.3.2.1_A2_T6.js
index 15fe4beb5..0d658808d 100644
--- a/test/built-ins/Function/S15.3.2.1_A2_T6.js
+++ b/test/built-ins/Function/S15.3.2.1_A2_T6.js
@@ -11,23 +11,27 @@ description: >
various results and a concotenation of strings
---*/
-var i=0;
+var i = 0;
-var p={toString:function(){return "arg"+(++i)}};
+var p = {
+ toString: function() {
+ return "arg" + (++i)
+ }
+};
//CHECK#1
try {
- var f = Function(p+","+p+","+p, "return arg1+arg2+arg3;");
+ var f = Function(p + "," + p + "," + p, "return arg1+arg2+arg3;");
} catch (e) {
$ERROR('#1: test failed');
}
//CHECK#2
-if (!(f instanceof Function)){
+if (!(f instanceof Function)) {
$ERROR('#2: It is permissible but not necessary to have one argument for each formal parameter to be specified');
}
//CHECK#3
-if (f("",1,p) !== "1arg4") {
+if (f("", 1, p) !== "1arg4") {
$ERROR('#3: It is permissible but not necessary to have one argument for each formal parameter to be specified');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A3_T1.js b/test/built-ins/Function/S15.3.2.1_A3_T1.js
index 3a1013ecd..b5c796b35 100644
--- a/test/built-ins/Function/S15.3.2.1_A3_T1.js
+++ b/test/built-ins/Function/S15.3.2.1_A3_T1.js
@@ -19,15 +19,23 @@ description: >
'body';}}"
---*/
-var p = {toString:function(){throw 1;}};
-var body = {toString:function(){throw "body";}};
+var p = {
+ toString: function() {
+ throw 1;
+ }
+};
+var body = {
+ toString: function() {
+ throw "body";
+ }
+};
//CHECK#1
try {
- var f = new Function(p,body);
+ var f = new Function(p, body);
$ERROR('#1: test failed');
} catch (e) {
if (e !== 1) {
- $ERROR('#1.1: i) Let Result(i) be the first argument; ii) Let P be ToString(Result(i))');
+ $ERROR('#1.1: i) Let Result(i) be the first argument; ii) Let P be ToString(Result(i))');
}
}
diff --git a/test/built-ins/Function/S15.3.2.1_A3_T10.js b/test/built-ins/Function/S15.3.2.1_A3_T10.js
index 1945adbbe..684c1e7da 100644
--- a/test/built-ins/Function/S15.3.2.1_A3_T10.js
+++ b/test/built-ins/Function/S15.3.2.1_A3_T10.js
@@ -19,14 +19,18 @@ description: >
---*/
var body = "return this;";
-var p={toString:function(){return "z;x"}};
+var p = {
+ toString: function() {
+ return "z;x"
+ }
+};
//CHECK#1
try {
- var f = new Function(p,body);
+ var f = new Function(p, body);
$ERROR('#1: If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception');
} catch (e) {
if (!(e instanceof SyntaxError)) {
- $ERROR('#1.1: If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception');
+ $ERROR('#1.1: If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception');
}
}
diff --git a/test/built-ins/Function/S15.3.2.1_A3_T11.js b/test/built-ins/Function/S15.3.2.1_A3_T11.js
index f547d6973..1091a94b3 100644
--- a/test/built-ins/Function/S15.3.2.1_A3_T11.js
+++ b/test/built-ins/Function/S15.3.2.1_A3_T11.js
@@ -24,7 +24,7 @@ var p = "a,b,c";
try {
var f = new Function(p, void 0);
} catch (e) {
- $ERROR('#1: test failed with error '+e);
+ $ERROR('#1: test failed with error ' + e);
}
//CHECK#2
@@ -33,6 +33,6 @@ if (f.constructor !== Function) {
}
//CHECK#3
-if (f()!==undefined) {
+if (f() !== undefined) {
$ERROR('#3: When the Function constructor is called with arguments p, body the following steps are taken...');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A3_T12.js b/test/built-ins/Function/S15.3.2.1_A3_T12.js
index a3698bbfd..a87f0ba3e 100644
--- a/test/built-ins/Function/S15.3.2.1_A3_T12.js
+++ b/test/built-ins/Function/S15.3.2.1_A3_T12.js
@@ -24,7 +24,7 @@ var p = "a,b,c";
try {
var f = new Function(p, undefined);
} catch (e) {
- $ERROR('#1: test failed with error '+e);
+ $ERROR('#1: test failed with error ' + e);
}
//CHECK#2
@@ -33,6 +33,6 @@ if (f.constructor !== Function) {
}
//CHECK#3
-if (f()!==undefined) {
+if (f() !== undefined) {
$ERROR('#3: When the Function constructor is called with arguments p, body the following steps are taken...');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A3_T13.js b/test/built-ins/Function/S15.3.2.1_A3_T13.js
index f74d02cf6..e2d5c251a 100644
--- a/test/built-ins/Function/S15.3.2.1_A3_T13.js
+++ b/test/built-ins/Function/S15.3.2.1_A3_T13.js
@@ -22,7 +22,7 @@ var p = "a,b,c";
try {
var f = new Function(p, null);
} catch (e) {
- $ERROR('#1: test failed with error '+e);
+ $ERROR('#1: test failed with error ' + e);
}
//CHECK#2
@@ -31,6 +31,6 @@ if (f.constructor !== Function) {
}
//CHECK#3
-if (f()!==undefined) {
+if (f() !== undefined) {
$ERROR('#3: When the Function constructor is called with arguments p, body the following steps are taken...');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A3_T14.js b/test/built-ins/Function/S15.3.2.1_A3_T14.js
index 0d7a87192..38af3ccdf 100644
--- a/test/built-ins/Function/S15.3.2.1_A3_T14.js
+++ b/test/built-ins/Function/S15.3.2.1_A3_T14.js
@@ -24,7 +24,7 @@ var p = "a,b,c";
try {
var f = new Function(p, body);
} catch (e) {
- $ERROR('#1: test failed with error '+e);
+ $ERROR('#1: test failed with error ' + e);
}
//CHECK#2
@@ -33,7 +33,7 @@ if (f.constructor !== Function) {
}
//CHECK#3
-if (f()!==undefined) {
+if (f() !== undefined) {
$ERROR('#3: When the Function constructor is called with arguments p, body the following steps are taken...');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A3_T15.js b/test/built-ins/Function/S15.3.2.1_A3_T15.js
index e3f6eb2bd..43796ef88 100644
--- a/test/built-ins/Function/S15.3.2.1_A3_T15.js
+++ b/test/built-ins/Function/S15.3.2.1_A3_T15.js
@@ -22,7 +22,7 @@ description: >
try {
var f = new Function("", "");
} catch (e) {
- $ERROR('#1: test failed with error '+e);
+ $ERROR('#1: test failed with error ' + e);
}
//CHECK#2
@@ -31,6 +31,6 @@ if (f.constructor !== Function) {
}
//CHECK#3
-if (f()!==undefined) {
+if (f() !== undefined) {
$ERROR('#3: When the Function constructor is called with arguments p, body the following steps are taken...');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A3_T2.js b/test/built-ins/Function/S15.3.2.1_A3_T2.js
index 1649e9fad..069ddeabf 100644
--- a/test/built-ins/Function/S15.3.2.1_A3_T2.js
+++ b/test/built-ins/Function/S15.3.2.1_A3_T2.js
@@ -18,14 +18,18 @@ description: >
"{toString:function(){return 'a';}}" and "return a;"
---*/
-var p = {toString:function(){return "a";}};
+var p = {
+ toString: function() {
+ return "a";
+ }
+};
var body = "return a;";
//CHECK#1
try {
- var f = new Function(p,body);
+ var f = new Function(p, body);
} catch (e) {
- $ERROR('#1: test failed with error '+e);
+ $ERROR('#1: test failed with error ' + e);
}
//CHECK#2
@@ -34,6 +38,6 @@ if (f.constructor !== Function) {
}
//CHECK#3
-if (f(42)!==42) {
+if (f(42) !== 42) {
$ERROR('#3: When the Function constructor is called with arguments p, body creates a new Function object as specified in 13.2');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A3_T3.js b/test/built-ins/Function/S15.3.2.1_A3_T3.js
index 4ba1f0f48..29454c2f9 100644
--- a/test/built-ins/Function/S15.3.2.1_A3_T3.js
+++ b/test/built-ins/Function/S15.3.2.1_A3_T3.js
@@ -19,16 +19,25 @@ description: >
"{toString:function(){throw "body";}}"
---*/
-var p = {toString:function(){p=1;return "a";}};
-var body = {toString:function(){throw "body";}};
+var p = {
+ toString: function() {
+ p = 1;
+ return "a";
+ }
+};
+var body = {
+ toString: function() {
+ throw "body";
+ }
+};
//CHECK#1
try {
- var f = new Function(p,body);
+ var f = new Function(p, body);
$ERROR('#1: test failed');
} catch (e) {
if (e !== "body") {
- $ERROR('#1.1: i) Let Result(i) be the first argument; ii) Let P be ToString(Result(i))');
+ $ERROR('#1.1: i) Let Result(i) be the first argument; ii) Let P be ToString(Result(i))');
}
}
diff --git a/test/built-ins/Function/S15.3.2.1_A3_T4.js b/test/built-ins/Function/S15.3.2.1_A3_T4.js
index e817ba1b3..7a0ec0d00 100644
--- a/test/built-ins/Function/S15.3.2.1_A3_T4.js
+++ b/test/built-ins/Function/S15.3.2.1_A3_T4.js
@@ -22,9 +22,9 @@ var body = "return 1.1;";
//CHECK#1
try {
- var f = new Function(p,body);
+ var f = new Function(p, body);
} catch (e) {
- $ERROR('#1: test failed with error '+e);
+ $ERROR('#1: test failed with error ' + e);
}
//CHECK#2
@@ -33,7 +33,7 @@ if (f.constructor !== Function) {
}
//CHECK#3
-if (f()!==1.1) {
+if (f() !== 1.1) {
$ERROR('#3: When the Function constructor is called with one argument then body be that argument the following steps are taken...');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A3_T5.js b/test/built-ins/Function/S15.3.2.1_A3_T5.js
index 67887edd3..47a69636b 100644
--- a/test/built-ins/Function/S15.3.2.1_A3_T5.js
+++ b/test/built-ins/Function/S15.3.2.1_A3_T5.js
@@ -22,9 +22,9 @@ var body = "return \"A\";";
//CHECK#1
try {
- var f = new Function(void 0,body);
+ var f = new Function(void 0, body);
} catch (e) {
- $ERROR('#1: test failed with error '+e);
+ $ERROR('#1: test failed with error ' + e);
}
//CHECK#2
@@ -33,6 +33,6 @@ if (f.constructor !== Function) {
}
//CHECK#3
-if (f()!=='\u0041') {
+if (f() !== '\u0041') {
$ERROR('#3: When the Function constructor is called with one argument then body be that argument the following steps are taken...');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A3_T6.js b/test/built-ins/Function/S15.3.2.1_A3_T6.js
index 129c462f2..f39efaffc 100644
--- a/test/built-ins/Function/S15.3.2.1_A3_T6.js
+++ b/test/built-ins/Function/S15.3.2.1_A3_T6.js
@@ -22,10 +22,10 @@ var body = "return true;";
//CHECK#1
try {
- var f = new Function(null,body);
+ var f = new Function(null, body);
$ERROR('#1: If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception');
} catch (e) {
if (!(e instanceof SyntaxError)) {
- $ERROR('#1.1: If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception');
+ $ERROR('#1.1: If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception');
}
}
diff --git a/test/built-ins/Function/S15.3.2.1_A3_T7.js b/test/built-ins/Function/S15.3.2.1_A3_T7.js
index fa680f6b5..de41763f2 100644
--- a/test/built-ins/Function/S15.3.2.1_A3_T7.js
+++ b/test/built-ins/Function/S15.3.2.1_A3_T7.js
@@ -20,13 +20,13 @@ description: >
var body = "return a;";
-var p=Object("a");
+var p = Object("a");
//CHECK#1
try {
var f = new Function(p, body);
} catch (e) {
- $ERROR('#1: test failed with error '+e);
+ $ERROR('#1: test failed with error ' + e);
}
//CHECK#2
@@ -35,6 +35,6 @@ if (f.constructor !== Function) {
}
//CHECK#3
-if (f(1)!==1) {
+if (f(1) !== 1) {
$ERROR('#3: When the Function constructor is called with one argument then body be that argument the following steps are taken...');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A3_T8.js b/test/built-ins/Function/S15.3.2.1_A3_T8.js
index 2e3c36110..33d353c92 100644
--- a/test/built-ins/Function/S15.3.2.1_A3_T8.js
+++ b/test/built-ins/Function/S15.3.2.1_A3_T8.js
@@ -22,9 +22,9 @@ var body = "return this;";
//CHECK#1
try {
- var f = new Function(undefined,body);
+ var f = new Function(undefined, body);
} catch (e) {
- $ERROR('#1: test failed with error '+e);
+ $ERROR('#1: test failed with error ' + e);
}
//CHECK#2
@@ -33,6 +33,6 @@ if (f.constructor !== Function) {
}
//CHECK#3
-if (f()!==this) {
+if (f() !== this) {
$ERROR('#3: When the Function constructor is called with one argument then body be that argument the following steps are taken...');
}
diff --git a/test/built-ins/Function/S15.3.2.1_A3_T9.js b/test/built-ins/Function/S15.3.2.1_A3_T9.js
index 4d5d1a042..d4134cb37 100644
--- a/test/built-ins/Function/S15.3.2.1_A3_T9.js
+++ b/test/built-ins/Function/S15.3.2.1_A3_T9.js
@@ -19,14 +19,14 @@ description: >
---*/
var body = "return this;";
-var p="1,1";
+var p = "1,1";
//CHECK#1
try {
- var f = new Function(p,body);
+ var f = new Function(p, body);
$ERROR('#1: If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception');
} catch (e) {
if (!(e instanceof SyntaxError)) {
- $ERROR('#1.1: If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception');
+ $ERROR('#1.1: If P is not parsable as a FormalParameterList_opt then throw a SyntaxError exception');
}
}
diff --git a/test/built-ins/Function/S15.3.3_A1.js b/test/built-ins/Function/S15.3.3_A1.js
index 05200e212..a498f0131 100644
--- a/test/built-ins/Function/S15.3.3_A1.js
+++ b/test/built-ins/Function/S15.3.3_A1.js
@@ -7,6 +7,6 @@ es5id: 15.3.3_A1
description: Checking existence of the property "prototype"
---*/
-if(!Function.hasOwnProperty("prototype")){
+if (!Function.hasOwnProperty("prototype")) {
$ERROR('#1: The Function constructor has the property "prototype"');
}
diff --git a/test/built-ins/Function/S15.3.3_A3.js b/test/built-ins/Function/S15.3.3_A3.js
index a22a560d0..b4fb57879 100644
--- a/test/built-ins/Function/S15.3.3_A3.js
+++ b/test/built-ins/Function/S15.3.3_A3.js
@@ -8,7 +8,7 @@ description: Checking Function.length property
---*/
//CHECK#1
-if (!Function.hasOwnProperty("length")){
+if (!Function.hasOwnProperty("length")) {
$ERROR('#1: Function constructor has length property');
}
diff --git a/test/built-ins/Function/S15.3.5_A2_T2.js b/test/built-ins/Function/S15.3.5_A2_T2.js
index 16f1e7ae3..00b25df86 100644
--- a/test/built-ins/Function/S15.3.5_A2_T2.js
+++ b/test/built-ins/Function/S15.3.5_A2_T2.js
@@ -10,7 +10,7 @@ description: >
---*/
//CHECK#1
-if ((new Function("arg1,arg2","var x =arg1; this.y=arg2;return arg1+arg2;"))("1",2) !== "12") {
+if ((new Function("arg1,arg2", "var x =arg1; this.y=arg2;return arg1+arg2;"))("1", 2) !== "12") {
$ERROR('#1: Every function instance has a [[Call]] property');
}
diff --git a/test/built-ins/Function/S15.3.5_A3_T2.js b/test/built-ins/Function/S15.3.5_A3_T2.js
index 861e754d4..5a233d07f 100644
--- a/test/built-ins/Function/S15.3.5_A3_T2.js
+++ b/test/built-ins/Function/S15.3.5_A3_T2.js
@@ -9,8 +9,8 @@ description: >
this.y=arg1+arg2;return \"OK\";")
---*/
-var FACTORY = new Function("arg1,arg2","var x =1; this.y=arg1+arg2;return \"OK\";");
-var obj = new FACTORY("1",2);
+var FACTORY = new Function("arg1,arg2", "var x =1; this.y=arg1+arg2;return \"OK\";");
+var obj = new FACTORY("1", 2);
//CHECK#1
if (typeof obj !== "object") {
diff --git a/test/built-ins/Function/S15.3_A2_T1.js b/test/built-ins/Function/S15.3_A2_T1.js
index f7cc03dd0..92448aaf0 100644
--- a/test/built-ins/Function/S15.3_A2_T1.js
+++ b/test/built-ins/Function/S15.3_A2_T1.js
@@ -11,10 +11,10 @@ description: Checking if executing "Function.call(this, "var x / = 1;")" fails
---*/
//CHECK#
-try{
+try {
Function.call(this, "var x / = 1;");
-} catch(e){
+} catch (e) {
if (!(e instanceof SyntaxError)) {
- $ERROR('#1: function body must be valid');
+ $ERROR('#1: function body must be valid');
}
}
diff --git a/test/built-ins/Function/S15.3_A2_T2.js b/test/built-ins/Function/S15.3_A2_T2.js
index 6fbc17a5c..1c3de3f64 100644
--- a/test/built-ins/Function/S15.3_A2_T2.js
+++ b/test/built-ins/Function/S15.3_A2_T2.js
@@ -11,10 +11,10 @@ description: Checking if executing "Function.call(this, "var #x = 1;")" fails
---*/
//CHECK#
-try{
+try {
Function.call(this, "var #x = 1;");
-} catch(e){
+} catch (e) {
if (!(e instanceof SyntaxError)) {
- $ERROR('#1: function body must be valid');
+ $ERROR('#1: function body must be valid');
}
}
diff --git a/test/built-ins/Function/S15.3_A3_T1.js b/test/built-ins/Function/S15.3_A3_T1.js
index 97d3d2ec9..8574cfb87 100644
--- a/test/built-ins/Function/S15.3_A3_T1.js
+++ b/test/built-ins/Function/S15.3_A3_T1.js
@@ -11,7 +11,11 @@ description: First argument is object
//CHECK#1 - does not throw
var f = Function.call(mars, "return name;");
-var mars={name:"mars", color:"red", number:4};
+var mars = {
+ name: "mars",
+ color: "red",
+ number: 4
+};
var f = Function.call(mars, "this.godname=\"ares\"; return this.color;");
@@ -23,6 +27,6 @@ if (about_mars !== undefined) {
}
//CHECK#3
-if (this.godname !== "ares" && mars.godname===undefined) {
+if (this.godname !== "ares" && mars.godname === undefined) {
$ERROR('#3: When applied to the Function object itself, thisArg should be ignored');
}
diff --git a/test/built-ins/Function/S15.3_A3_T2.js b/test/built-ins/Function/S15.3_A3_T2.js
index 72f827fea..aa0fe3961 100644
--- a/test/built-ins/Function/S15.3_A3_T2.js
+++ b/test/built-ins/Function/S15.3_A3_T2.js
@@ -9,8 +9,8 @@ es5id: 15.3_A3_T2
description: First argument is string and null
---*/
-this.color="red";
-var planet="mars";
+this.color = "red";
+var planet = "mars";
var f = Function.call("blablastring", "return this.color;");
diff --git a/test/built-ins/Function/S15.3_A3_T3.js b/test/built-ins/Function/S15.3_A3_T3.js
index 7c2b0d6d7..7ac27927d 100644
--- a/test/built-ins/Function/S15.3_A3_T3.js
+++ b/test/built-ins/Function/S15.3_A3_T3.js
@@ -9,15 +9,15 @@ es5id: 15.3_A3_T3
description: First argument is this, and this don`t have needed variable
---*/
-var f=Function.call(this, "return planet;");
-var g=Function.call(this, "return color;");
+var f = Function.call(this, "return planet;");
+var g = Function.call(this, "return color;");
//CHECK#1
-if (f()!==undefined) {
+if (f() !== undefined) {
$ERROR('#1: ');
}
-var planet="mars";
+var planet = "mars";
//CHECK#2
if (f() !== "mars") {
@@ -25,15 +25,15 @@ if (f() !== "mars") {
}
//CHECK#3
-try{
+try {
g();
$ERROR('#3: ');
-} catch(e){
+} catch (e) {
if (!(e instanceof ReferenceError))
- $ERROR('#3.1: ');
-}
+ $ERROR('#3.1: ');
+}
-this.color="red";
+this.color = "red";
//CHECK#4
if (g() !== "red") {
diff --git a/test/built-ins/Function/S15.3_A3_T4.js b/test/built-ins/Function/S15.3_A3_T4.js
index 69c045d2d..769f6bbb4 100644
--- a/test/built-ins/Function/S15.3_A3_T4.js
+++ b/test/built-ins/Function/S15.3_A3_T4.js
@@ -9,14 +9,14 @@ es5id: 15.3_A3_T4
description: First argument is this, and this have needed variable
---*/
-var f=Function.call(this, "return planet;");
+var f = Function.call(this, "return planet;");
//CHECK#1
if (f() !== undefined) {
$ERROR('#1: ');
-}
+}
-var planet="mars";
+var planet = "mars";
//CHECK#2
if (f() !== "mars") {
diff --git a/test/built-ins/Function/S15.3_A3_T5.js b/test/built-ins/Function/S15.3_A3_T5.js
index 3129b520c..753410f5c 100644
--- a/test/built-ins/Function/S15.3_A3_T5.js
+++ b/test/built-ins/Function/S15.3_A3_T5.js
@@ -11,15 +11,15 @@ description: >
Function return this.var_name
---*/
-var f=Function.call(this, "return this.planet;");
-var g=Function.call(this, "return this.color;");
+var f = Function.call(this, "return this.planet;");
+var g = Function.call(this, "return this.color;");
//CHECK#1
if (f() !== undefined) {
$ERROR('#2: ');
}
-var planet="mars";
+var planet = "mars";
//CHECK#2
if (f() !== "mars") {
@@ -29,9 +29,9 @@ if (f() !== "mars") {
//CHECK#3
if (g() !== undefined) {
$ERROR('#3: ');
-}
+}
-this.color="red";
+this.color = "red";
//CHECK#4
if (g() !== "red") {
diff --git a/test/built-ins/Function/S15.3_A3_T6.js b/test/built-ins/Function/S15.3_A3_T6.js
index 44af50aaa..fa88d7e5a 100644
--- a/test/built-ins/Function/S15.3_A3_T6.js
+++ b/test/built-ins/Function/S15.3_A3_T6.js
@@ -11,14 +11,14 @@ description: >
return this.var_name
---*/
-var f=Function.call(this, "return this.planet;");
+var f = Function.call(this, "return this.planet;");
//CHECK#1
if (f() !== undefined) {
$ERROR('#1: ');
-}
+}
-var planet="mars";
+var planet = "mars";
//CHECK#2
if (f() !== "mars") {
diff --git a/test/built-ins/Function/length/15.3.3.2-1.js b/test/built-ins/Function/length/15.3.3.2-1.js
index 84c73661f..5371dbf61 100644
--- a/test/built-ins/Function/length/15.3.3.2-1.js
+++ b/test/built-ins/Function/length/15.3.3.2-1.js
@@ -6,7 +6,7 @@ es5id: 15.3.3.2-1
description: Function.length - data property with value 1
---*/
- var desc = Object.getOwnPropertyDescriptor(Function,"length");
+var desc = Object.getOwnPropertyDescriptor(Function, "length");
assert.sameValue(desc.value, 1, 'desc.value');
assert.sameValue(desc.writable, false, 'desc.writable');
diff --git a/test/built-ins/Function/length/S15.3.5.1_A1_T2.js b/test/built-ins/Function/length/S15.3.5.1_A1_T2.js
index 2a8ee4e26..0ee96c124 100644
--- a/test/built-ins/Function/length/S15.3.5.1_A1_T2.js
+++ b/test/built-ins/Function/length/S15.3.5.1_A1_T2.js
@@ -11,7 +11,7 @@ description: >
null)
---*/
-var f = Function("arg1,arg2,arg3","arg4,arg5", null);
+var f = Function("arg1,arg2,arg3", "arg4,arg5", null);
//CHECK#1
if (!(f.hasOwnProperty('length'))) {
diff --git a/test/built-ins/Function/length/S15.3.5.1_A1_T3.js b/test/built-ins/Function/length/S15.3.5.1_A1_T3.js
index 09f5776a6..ff5452aaa 100644
--- a/test/built-ins/Function/length/S15.3.5.1_A1_T3.js
+++ b/test/built-ins/Function/length/S15.3.5.1_A1_T3.js
@@ -11,7 +11,7 @@ description: >
Function("arg1,arg2,arg3","arg1,arg2","arg3", null)
---*/
-var f = new Function("arg1,arg2,arg3","arg1,arg2","arg3", null);
+var f = new Function("arg1,arg2,arg3", "arg1,arg2", "arg3", null);
//CHECK#1
if (!(f.hasOwnProperty('length'))) {
diff --git a/test/built-ins/Function/length/S15.3.5.1_A2_T1.js b/test/built-ins/Function/length/S15.3.5.1_A2_T1.js
index ccc4b1043..2e773dda3 100644
--- a/test/built-ins/Function/length/S15.3.5.1_A2_T1.js
+++ b/test/built-ins/Function/length/S15.3.5.1_A2_T1.js
@@ -17,7 +17,7 @@ if (!(f.hasOwnProperty('length'))) {
}
//CHECK#2
-if(!delete f.length){
+if (!delete f.length) {
$ERROR('#2: the function.length property does not have the attributes DontDelete.');
}
diff --git a/test/built-ins/Function/length/S15.3.5.1_A2_T2.js b/test/built-ins/Function/length/S15.3.5.1_A2_T2.js
index 7684cd918..dc6f91375 100644
--- a/test/built-ins/Function/length/S15.3.5.1_A2_T2.js
+++ b/test/built-ins/Function/length/S15.3.5.1_A2_T2.js
@@ -9,7 +9,7 @@ description: >
Function("arg1,arg2,arg3","arg4,arg5", null) succeeds
---*/
-var f = Function("arg1,arg2,arg3","arg4,arg5", null);
+var f = Function("arg1,arg2,arg3", "arg4,arg5", null);
//CHECK#1
if (!(f.hasOwnProperty('length'))) {
diff --git a/test/built-ins/Function/length/S15.3.5.1_A2_T3.js b/test/built-ins/Function/length/S15.3.5.1_A2_T3.js
index f65035071..882152b04 100644
--- a/test/built-ins/Function/length/S15.3.5.1_A2_T3.js
+++ b/test/built-ins/Function/length/S15.3.5.1_A2_T3.js
@@ -9,7 +9,7 @@ description: >
Function("arg1,arg2,arg3","arg1,arg2","arg3", null) succeeds
---*/
-var f = new Function("arg1,arg2,arg3","arg1,arg2","arg3", null);
+var f = new Function("arg1,arg2,arg3", "arg1,arg2", "arg3", null);
//CHECK#1
if (!(f.hasOwnProperty('length'))) {
diff --git a/test/built-ins/Function/length/S15.3.5.1_A3_T1.js b/test/built-ins/Function/length/S15.3.5.1_A3_T1.js
index c10714b3f..02d981a45 100644
--- a/test/built-ins/Function/length/S15.3.5.1_A3_T1.js
+++ b/test/built-ins/Function/length/S15.3.5.1_A3_T1.js
@@ -10,7 +10,7 @@ description: >
includes: [propertyHelper.js]
---*/
-var f = new Function("arg1,arg2,arg3","arg4,arg5", null);
+var f = new Function("arg1,arg2,arg3", "arg4,arg5", null);
//CHECK#1
if (!(f.hasOwnProperty('length'))) {
@@ -19,7 +19,7 @@ if (!(f.hasOwnProperty('length'))) {
var flength = f.length;
-verifyNotWritable(f, "length", null, function(){});
+verifyNotWritable(f, "length", null, function() {});
//CHECK#2
if (f.length !== flength) {
diff --git a/test/built-ins/Function/length/S15.3.5.1_A3_T2.js b/test/built-ins/Function/length/S15.3.5.1_A3_T2.js
index 2482faecd..e6cb737b3 100644
--- a/test/built-ins/Function/length/S15.3.5.1_A3_T2.js
+++ b/test/built-ins/Function/length/S15.3.5.1_A3_T2.js
@@ -10,7 +10,7 @@ description: >
includes: [propertyHelper.js]
---*/
-var f = Function("arg1,arg2,arg3", null);
+var f = Function("arg1,arg2,arg3", null);
//CHECK#1
if (!(f.hasOwnProperty('length'))) {
@@ -19,7 +19,7 @@ if (!(f.hasOwnProperty('length'))) {
var flength = f.length;
-verifyNotWritable(f, "length", null, function(){});
+verifyNotWritable(f, "length", null, function() {});
//CHECK#2
if (f.length !== flength) {
diff --git a/test/built-ins/Function/length/S15.3.5.1_A3_T3.js b/test/built-ins/Function/length/S15.3.5.1_A3_T3.js
index ed321e683..818d82d63 100644
--- a/test/built-ins/Function/length/S15.3.5.1_A3_T3.js
+++ b/test/built-ins/Function/length/S15.3.5.1_A3_T3.js
@@ -10,7 +10,7 @@ description: >
includes: [propertyHelper.js]
---*/
-var f = new Function("arg1,arg2,arg3","arg1,arg2","arg3", null);
+var f = new Function("arg1,arg2,arg3", "arg1,arg2", "arg3", null);
//CHECK#1
if (!(f.hasOwnProperty('length'))) {
@@ -19,7 +19,7 @@ if (!(f.hasOwnProperty('length'))) {
var flength = f.length;
-verifyNotWritable(f, "length", null, function(){});
+verifyNotWritable(f, "length", null, function() {});
//CHECK#2
if (f.length !== flength) {
diff --git a/test/built-ins/Function/length/S15.3.5.1_A4_T1.js b/test/built-ins/Function/length/S15.3.5.1_A4_T1.js
index 14f9cc410..286ae58e3 100644
--- a/test/built-ins/Function/length/S15.3.5.1_A4_T1.js
+++ b/test/built-ins/Function/length/S15.3.5.1_A4_T1.js
@@ -16,10 +16,11 @@ if (!(f.hasOwnProperty('length'))) {
$ERROR('#1: the function has length property.');
}
-for(var key in f)
- if(key=="length")
- var lengthenumed=true;
-
+for (var key in f) {
+ if (key == "length") {
+ var lengthenumed = true;
+ }
+}
//CHECK#2
if (lengthenumed) {
$ERROR('#2: the length property has the attributes { DontEnum }');
diff --git a/test/built-ins/Function/length/S15.3.5.1_A4_T2.js b/test/built-ins/Function/length/S15.3.5.1_A4_T2.js
index c67c5f6a5..1700bcb7f 100644
--- a/test/built-ins/Function/length/S15.3.5.1_A4_T2.js
+++ b/test/built-ins/Function/length/S15.3.5.1_A4_T2.js
@@ -9,17 +9,19 @@ description: >
Function("arg1,arg2,arg3","arg4,arg5", null) fails
---*/
-var f = Function("arg1,arg2,arg3","arg5,arg4", null);
+var f = Function("arg1,arg2,arg3", "arg5,arg4", null);
//CHECK#1
if (!(f.hasOwnProperty('length'))) {
$ERROR('#1: the function has length property.');
}
-for(var key in f)
- if(key=="length")
- var lengthenumed=true;
-
+for (var key in f) {
+ if (key == "length") {
+ var lengthenumed = true;
+ }
+}
+
//CHECK#2
if (lengthenumed) {
$ERROR('#2: the length property has the attributes { DontEnum }');
diff --git a/test/built-ins/Function/length/S15.3.5.1_A4_T3.js b/test/built-ins/Function/length/S15.3.5.1_A4_T3.js
index cdf721374..6cd0753d8 100644
--- a/test/built-ins/Function/length/S15.3.5.1_A4_T3.js
+++ b/test/built-ins/Function/length/S15.3.5.1_A4_T3.js
@@ -9,17 +9,19 @@ description: >
Function("arg1,arg2,arg3","arg1,arg2","arg3", null) fails
---*/
-var f = new Function("arg1,arg2,arg3","arg1,arg2","arg3", null);
+var f = new Function("arg1,arg2,arg3", "arg1,arg2", "arg3", null);
//CHECK#1
if (!(f.hasOwnProperty('length'))) {
$ERROR('#1: the function has length property.');
}
-for(var key in f)
- if(key=="length")
- var lengthenumed=true;
-
+for (var key in f) {
+ if (key == "length") {
+ var lengthenumed = true;
+ }
+}
+
//CHECK#2
if (lengthenumed) {
$ERROR('#2: the length property has the attributes { DontEnum }');
diff --git a/test/built-ins/Function/prototype/S15.3.3.1_A1.js b/test/built-ins/Function/prototype/S15.3.3.1_A1.js
index af9795ab9..f06c15489 100644
--- a/test/built-ins/Function/prototype/S15.3.3.1_A1.js
+++ b/test/built-ins/Function/prototype/S15.3.3.1_A1.js
@@ -10,7 +10,9 @@ includes: [propertyHelper.js]
var obj = Function.prototype;
-verifyNotWritable(Function, "prototype", null, function(){return "shifted";});
+verifyNotWritable(Function, "prototype", null, function() {
+ return "shifted";
+});
//CHECK#1
if (Function.prototype !== obj) {
@@ -19,9 +21,9 @@ if (Function.prototype !== obj) {
//CHECK#2
try {
- if(Function.prototype()!==undefined){
- $ERROR('#2: the Function.prototype property has the attributes ReadOnly');
+ if (Function.prototype() !== undefined) {
+ $ERROR('#2: the Function.prototype property has the attributes ReadOnly');
}
} catch (e) {
- $ERROR('#2.1: the Function.prototype property has the attributes ReadOnly: '+e);
+ $ERROR('#2.1: the Function.prototype property has the attributes ReadOnly: ' + e);
}
diff --git a/test/built-ins/Function/prototype/S15.3.3.1_A2.js b/test/built-ins/Function/prototype/S15.3.3.1_A2.js
index 280e6d3a5..8642fe1d6 100644
--- a/test/built-ins/Function/prototype/S15.3.3.1_A2.js
+++ b/test/built-ins/Function/prototype/S15.3.3.1_A2.js
@@ -13,10 +13,10 @@ if (Function.propertyIsEnumerable('prototype')) {
}
// CHECK#2
-var count=0;
+var count = 0;
-for (var p in Function){
- if (p==="prototype") count++;
+for (var p in Function) {
+ if (p === "prototype") count++;
}
if (count !== 0) {
diff --git a/test/built-ins/Function/prototype/S15.3.3.1_A4.js b/test/built-ins/Function/prototype/S15.3.3.1_A4.js
index 17f5d057b..9feac6cb2 100644
--- a/test/built-ins/Function/prototype/S15.3.3.1_A4.js
+++ b/test/built-ins/Function/prototype/S15.3.3.1_A4.js
@@ -15,8 +15,10 @@ description: >
function foo() {}
-Object.defineProperty(foo, 'prototype', { value: {} });
+Object.defineProperty(foo, 'prototype', {
+ value: {}
+});
if (foo.prototype !==
- Object.getOwnPropertyDescriptor(foo, 'prototype').value) {
+ Object.getOwnPropertyDescriptor(foo, 'prototype').value) {
$ERROR("A function.prototype's descriptor lies");
}
diff --git a/test/built-ins/Function/prototype/S15.3.4_A1.js b/test/built-ins/Function/prototype/S15.3.4_A1.js
index b1b163bb5..b54a90c55 100644
--- a/test/built-ins/Function/prototype/S15.3.4_A1.js
+++ b/test/built-ins/Function/prototype/S15.3.4_A1.js
@@ -11,5 +11,5 @@ description: Object.prototype.toString returns [object+[[Class]]+]
if (Object.prototype.toString.call(Function.prototype) !== "[object Function]") {
$ERROR('#2: The Function prototype object is itself a Function ' +
- 'object (its [[Class]] is "Function") (15.3.4)');
+ 'object (its [[Class]] is "Function") (15.3.4)');
}
diff --git a/test/built-ins/Function/prototype/S15.3.4_A2_T1.js b/test/built-ins/Function/prototype/S15.3.4_A2_T1.js
index ebfcef721..cd8afff2f 100644
--- a/test/built-ins/Function/prototype/S15.3.4_A2_T1.js
+++ b/test/built-ins/Function/prototype/S15.3.4_A2_T1.js
@@ -15,5 +15,5 @@ try {
$ERROR('#1: The Function prototype object is itself a Function object that, when invoked, accepts any arguments and returns undefined');
}
} catch (e) {
- $ERROR('#1.1: The Function prototype object is itself a Function object that, when invoked, accepts any arguments and returns undefined: '+e);
+ $ERROR('#1.1: The Function prototype object is itself a Function object that, when invoked, accepts any arguments and returns undefined: ' + e);
}
diff --git a/test/built-ins/Function/prototype/S15.3.4_A2_T2.js b/test/built-ins/Function/prototype/S15.3.4_A2_T2.js
index 48dffef53..5ddc03b77 100644
--- a/test/built-ins/Function/prototype/S15.3.4_A2_T2.js
+++ b/test/built-ins/Function/prototype/S15.3.4_A2_T2.js
@@ -11,9 +11,9 @@ description: Call Function.prototype(null,void 0)
//CHECK#1
try {
- if (Function.prototype(null,void 0) !== undefined) {
+ if (Function.prototype(null, void 0) !== undefined) {
$ERROR('#1: The Function prototype object is itself a Function object that, when invoked, accepts any arguments and returns undefined');
}
} catch (e) {
- $ERROR('#1.1: The Function prototype object is itself a Function object that, when invoked, accepts any arguments and returns undefined: '+e);
+ $ERROR('#1.1: The Function prototype object is itself a Function object that, when invoked, accepts any arguments and returns undefined: ' + e);
}
diff --git a/test/built-ins/Function/prototype/S15.3.4_A2_T3.js b/test/built-ins/Function/prototype/S15.3.4_A2_T3.js
index f72522a14..5b4b159cd 100644
--- a/test/built-ins/Function/prototype/S15.3.4_A2_T3.js
+++ b/test/built-ins/Function/prototype/S15.3.4_A2_T3.js
@@ -16,5 +16,5 @@ try {
$ERROR('#1: The Function prototype object is itself a Function object that, when invoked, accepts any arguments and returns undefined');
}
} catch (e) {
- $ERROR('#1.1: The Function prototype object is itself a Function object that, when invoked, accepts any arguments and returns undefined: '+e);
+ $ERROR('#1.1: The Function prototype object is itself a Function object that, when invoked, accepts any arguments and returns undefined: ' + e);
}
diff --git a/test/built-ins/Function/prototype/S15.3.4_A3_T1.js b/test/built-ins/Function/prototype/S15.3.4_A3_T1.js
index 2d31234ce..7f8550234 100644
--- a/test/built-ins/Function/prototype/S15.3.4_A3_T1.js
+++ b/test/built-ins/Function/prototype/S15.3.4_A3_T1.js
@@ -11,6 +11,6 @@ description: Checking prototype of Function.prototype
if (Object.getPrototypeOf(Function.prototype) !== Object.prototype) {
$ERROR('#1: The value of the internal [[Prototype]] property of ' +
- 'the Function prototype object is the Object prototype ' +
- 'object (15.3.4)');
+ 'the Function prototype object is the Object prototype ' +
+ 'object (15.3.4)');
}
diff --git a/test/built-ins/Function/prototype/S15.3.4_A3_T2.js b/test/built-ins/Function/prototype/S15.3.4_A3_T2.js
index 5fdee9b54..eb6eaa1aa 100644
--- a/test/built-ins/Function/prototype/S15.3.4_A3_T2.js
+++ b/test/built-ins/Function/prototype/S15.3.4_A3_T2.js
@@ -14,6 +14,6 @@ description: >
Object.prototype.indicator = 1;
//CHECK#1
-if (Function.prototype.indicator!==1) {
+if (Function.prototype.indicator !== 1) {
$ERROR('#1: The value of the internal [[Prototype]] property of the Function prototype object is the Object prototype object (15.3.2.1)');
}
diff --git a/test/built-ins/Function/prototype/Symbol.hasInstance/this-val-poisoned-prototype.js b/test/built-ins/Function/prototype/Symbol.hasInstance/this-val-poisoned-prototype.js
index 33d46760d..8e97762be 100644
--- a/test/built-ins/Function/prototype/Symbol.hasInstance/this-val-poisoned-prototype.js
+++ b/test/built-ins/Function/prototype/Symbol.hasInstance/this-val-poisoned-prototype.js
@@ -16,7 +16,9 @@ features: [Symbol.hasInstance]
---*/
// Create a callable object without a `prototype` property
-var f = Object.getOwnPropertyDescriptor({ get f() {} }, 'f').get;
+var f = Object.getOwnPropertyDescriptor({
+ get f() {}
+}, 'f').get;
Object.defineProperty(f, 'prototype', {
get: function() {
diff --git a/test/built-ins/Function/prototype/apply/15.3.4.3-1-s.js b/test/built-ins/Function/prototype/apply/15.3.4.3-1-s.js
index 7ee954176..daeed835d 100644
--- a/test/built-ins/Function/prototype/apply/15.3.4.3-1-s.js
+++ b/test/built-ins/Function/prototype/apply/15.3.4.3-1-s.js
@@ -10,8 +10,8 @@ description: >
flags: [onlyStrict]
---*/
- function fun() {
- return (this instanceof String);
- }
+function fun() {
+ return (this instanceof String);
+}
assert.sameValue(fun.apply("", Array), false, 'fun.apply("", Array)');
diff --git a/test/built-ins/Function/prototype/apply/15.3.4.3-2-s.js b/test/built-ins/Function/prototype/apply/15.3.4.3-2-s.js
index a717204bd..0c792e14a 100644
--- a/test/built-ins/Function/prototype/apply/15.3.4.3-2-s.js
+++ b/test/built-ins/Function/prototype/apply/15.3.4.3-2-s.js
@@ -10,8 +10,8 @@ description: >
flags: [onlyStrict]
---*/
- function fun() {
- return (this instanceof Number);
- }
+function fun() {
+ return (this instanceof Number);
+}
assert.sameValue(fun.apply(-12, Array), false, 'fun.apply(-12, Array)');
diff --git a/test/built-ins/Function/prototype/apply/15.3.4.3-3-s.js b/test/built-ins/Function/prototype/apply/15.3.4.3-3-s.js
index 762c5c593..f62f5d967 100644
--- a/test/built-ins/Function/prototype/apply/15.3.4.3-3-s.js
+++ b/test/built-ins/Function/prototype/apply/15.3.4.3-3-s.js
@@ -10,8 +10,8 @@ description: >
flags: [onlyStrict]
---*/
- function fun() {
- return (this instanceof Boolean);
- }
+function fun() {
+ return (this instanceof Boolean);
+}
assert.sameValue(fun.apply(false, Array), false, 'fun.apply(false, Array)');
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A10.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A10.js
index ce9541aa0..244c35acd 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A10.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A10.js
@@ -17,7 +17,9 @@ if (!(Function.prototype.apply.hasOwnProperty('length'))) {
var obj = Function.prototype.apply.length;
-verifyNotWritable(Function.prototype.apply, "length", null, function(){return "shifted";});
+verifyNotWritable(Function.prototype.apply, "length", null, function() {
+ return "shifted";
+});
//CHECK#2
if (Function.prototype.apply.length !== obj) {
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A11.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A11.js
index 18da556b6..dcab5610c 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A11.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A11.js
@@ -21,7 +21,7 @@ if (Function.prototype.apply.propertyIsEnumerable('length')) {
}
// CHECK#2
-for (var p in Function.prototype.apply){
- if (p==="length")
- $ERROR('#2: the Function.prototype.apply.length property has the attributes DontEnum');
+for (var p in Function.prototype.apply) {
+ if (p === "length")
+ $ERROR('#2: the Function.prototype.apply.length property has the attributes DontEnum');
}
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A12.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A12.js
index c84faf776..50ea57ee8 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A12.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A12.js
@@ -11,5 +11,5 @@ description: >
//CHECK#1
if (Function.prototype.apply.prototype !== undefined) {
- $ERROR('#1: Function.prototype.apply has not prototype property'+Function.prototype.apply.prototype);
+ $ERROR('#1: Function.prototype.apply has not prototype property' + Function.prototype.apply.prototype);
}
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A16.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A16.js
index ce11c7e88..bf25dfed3 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A16.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A16.js
@@ -17,7 +17,7 @@ if (typeof re === 'function') {
try {
Function.prototype.bind.call(re, undefined);
$ERROR('#1: If IsCallable(func) is false, ' +
- 'then (bind should) throw a TypeError exception');
+ 'then (bind should) throw a TypeError exception');
} catch (e) {
if (!(e instanceof TypeError)) {
$ERROR('#1: TypeError expected. Actual: ' + e);
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A1_T1.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A1_T1.js
index c8a7711c8..77e0ffe08 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A1_T1.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A1_T1.js
@@ -12,11 +12,11 @@ description: >
property. Prototype of the object is Function()
---*/
-var proto=Function();
+var proto = Function();
-function FACTORY(){};
+function FACTORY() {};
-FACTORY.prototype=proto;
+FACTORY.prototype = proto;
var obj = new FACTORY;
@@ -31,6 +31,6 @@ try {
$ERROR('#2: If the object does not have a [[Call]] property, a TypeError exception is thrown');
} catch (e) {
if (!(e instanceof TypeError)) {
- $ERROR('#2.1: If the object does not have a [[Call]] property, a TypeError exception is thrown');
+ $ERROR('#2.1: If the object does not have a [[Call]] property, a TypeError exception is thrown');
}
}
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A1_T2.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A1_T2.js
index 8d65c78db..ad2b14770 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A1_T2.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A1_T2.js
@@ -12,9 +12,9 @@ description: >
property. Prototype of the object is Function.prototype
---*/
-function FACTORY(){};
+function FACTORY() {};
-FACTORY.prototype=Function.prototype;
+FACTORY.prototype = Function.prototype;
var obj = new FACTORY;
@@ -29,6 +29,6 @@ try {
$ERROR('#2: If the object does not have a [[Call]] property, a TypeError exception is thrown');
} catch (e) {
if (!(e instanceof TypeError)) {
- $ERROR('#2.1: If the object does not have a [[Call]] property, a TypeError exception is thrown');
+ $ERROR('#2.1: If the object does not have a [[Call]] property, a TypeError exception is thrown');
}
}
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A2_T2.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A2_T2.js
index a56a6b4d1..872e46597 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A2_T2.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A2_T2.js
@@ -7,7 +7,7 @@ es5id: 15.3.4.3_A2_T2
description: Checking f.apply.length, where f is new Function
---*/
-var f=new Function;
+var f = new Function;
//CHECK#1
if (typeof f.apply !== "function") {
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T5.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T5.js
index b2667397c..2864ae8e3 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T5.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T5.js
@@ -11,7 +11,7 @@ description: >
declaration
---*/
-function FACTORY(){
+function FACTORY() {
Function("this.feat=\"in da haus\"").apply();
};
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T6.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T6.js
index de2baaba0..c4fe40482 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T6.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T6.js
@@ -12,8 +12,10 @@ description: >
flags: [noStrict]
---*/
-function FACTORY(){
- (function(){this.feat="kamon beyba"}).apply(null);
+function FACTORY() {
+ (function() {
+ this.feat = "kamon beyba"
+ }).apply(null);
};
var obj = new FACTORY;
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T7.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T7.js
index 7138f11cd..1065e8d27 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T7.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T7.js
@@ -11,7 +11,7 @@ description: >
declaration
---*/
-(function FACTORY(){
+(function FACTORY() {
Function("this.feat=\"in da haus\"").apply(void 0);
})();
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T8.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T8.js
index bec48bd99..94449eb37 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T8.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T8.js
@@ -12,8 +12,10 @@ description: >
flags: [noStrict]
---*/
-(function FACTORY(){
- (function(){this.feat="kamon beyba"}).apply(undefined);
+(function FACTORY() {
+ (function() {
+ this.feat = "kamon beyba"
+ }).apply(undefined);
})();
//CHECK#1
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T9.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T9.js
index e7055f830..4fe65248a 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T9.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A3_T9.js
@@ -9,7 +9,7 @@ es5id: 15.3.4.3_A3_T9
description: Checking by using eval, argument at apply function is void 0
---*/
-eval( " Function(\"this.feat=1\").apply(void 0) " );
+eval(" Function(\"this.feat=1\").apply(void 0) ");
//CHECK#1
if (this["feat"] !== 1) {
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T1.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T1.js
index b0a73eab7..937f8cb9f 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T1.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T1.js
@@ -9,7 +9,7 @@ es5id: 15.3.4.3_A5_T1
description: thisArg is number
---*/
-var obj=1;
+var obj = 1;
var retobj = Function("this.touched= true; return this;").apply(obj);
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T2.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T2.js
index 88e6a92cb..79d6cf816 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T2.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T2.js
@@ -9,7 +9,7 @@ es5id: 15.3.4.3_A5_T2
description: thisArg is boolean true
---*/
-var obj=true;
+var obj = true;
var retobj = new Function("this.touched= true; return this;").apply(obj);
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T3.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T3.js
index 8ec4feae5..eeb07e45e 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T3.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T3.js
@@ -10,9 +10,12 @@ description: thisArg is string
flags: [noStrict]
---*/
-var obj="soap";
+var obj = "soap";
-var retobj = ( function(){this.touched= true; return this;} ).apply(obj);
+var retobj = (function() {
+ this.touched = true;
+ return this;
+}).apply(obj);
//CHECK#1
if (typeof obj.touched !== "undefined") {
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T4.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T4.js
index 65230c6eb..527311ae9 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T4.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T4.js
@@ -10,7 +10,10 @@ description: thisArg is function variable that return this
flags: [noStrict]
---*/
-f = function(){this.touched= true; return this;};
+f = function() {
+ this.touched = true;
+ return this;
+};
retobj = f.apply(obj);
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T5.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T5.js
index b4947b223..8d88bfdd1 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T5.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T5.js
@@ -9,9 +9,11 @@ es5id: 15.3.4.3_A5_T5
description: thisArg is function variable
---*/
-var f = function(){this.touched= true;};
+var f = function() {
+ this.touched = true;
+};
-var obj={};
+var obj = {};
f.apply(obj);
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T6.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T6.js
index 3a852f770..ffabe93c3 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T6.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T6.js
@@ -9,9 +9,11 @@ es5id: 15.3.4.3_A5_T6
description: thisArg is new String()
---*/
-var obj=new String("soap");
+var obj = new String("soap");
-( function(){this.touched= true;}).apply(obj);
+(function() {
+ this.touched = true;
+}).apply(obj);
//CHECK#1
if (!(obj.touched)) {
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T7.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T7.js
index 3aea79d4c..f99dfe61f 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T7.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T7.js
@@ -9,7 +9,7 @@ es5id: 15.3.4.3_A5_T7
description: thisArg is new Number()
---*/
-var obj=new Number(1);
+var obj = new Number(1);
Function("this.touched= true;").apply(obj);
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T8.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T8.js
index 3e7ff7743..26ce5a6ec 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T8.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A5_T8.js
@@ -9,7 +9,7 @@ es5id: 15.3.4.3_A5_T8
description: thisArg is Function()
---*/
-var obj=Function();
+var obj = Function();
new Function("this.touched= true; return this;").apply(obj);
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A6_T2.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A6_T2.js
index ddeca4bbb..a21265dd3 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A6_T2.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A6_T2.js
@@ -11,10 +11,10 @@ description: argArray is (null,1)
//CHECK#1
try {
- Function().apply(null,1);
+ Function().apply(null, 1);
$ERROR('#1: if argArray is neither an array nor an arguments object (see 10.1.8), a TypeError exception is thrown');
} catch (e) {
if (!(e instanceof TypeError)) {
- $ERROR('#1.1: if argArray is neither an array nor an arguments object (see 10.1.8), a TypeError exception is thrown');
+ $ERROR('#1.1: if argArray is neither an array nor an arguments object (see 10.1.8), a TypeError exception is thrown');
}
}
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A6_T3.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A6_T3.js
index 2fa2501c3..313e89d79 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A6_T3.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A6_T3.js
@@ -9,14 +9,14 @@ es5id: 15.3.4.3_A6_T3
description: argArray is (object,"1,3,4")
---*/
-var obj={};
+var obj = {};
//CHECK#1
try {
- Function().apply(obj,"1,3,4");
+ Function().apply(obj, "1,3,4");
$ERROR('#1: if argArray is neither an array nor an arguments object (see 10.1.8), a TypeError exception is thrown');
} catch (e) {
if (!(e instanceof TypeError)) {
- $ERROR('#1.1: if argArray is neither an array nor an arguments object (see 10.1.8), a TypeError exception is thrown');
+ $ERROR('#1.1: if argArray is neither an array nor an arguments object (see 10.1.8), a TypeError exception is thrown');
}
}
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T1.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T1.js
index afa24ed01..018dcc7bd 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T1.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T1.js
@@ -9,7 +9,7 @@ es5id: 15.3.4.3_A7_T1
description: argArray is (null,[1])
---*/
-Function("a1,a2,a3","this.shifted=a1;").apply(null,[1]);
+Function("a1,a2,a3", "this.shifted=a1;").apply(null, [1]);
//CHECK#1
if (this["shifted"] !== 1) {
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T10.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T10.js
index 8e518ebd6..7a77fd2d1 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T10.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T10.js
@@ -11,11 +11,11 @@ description: >
without declaration used
---*/
-var obj={};
+var obj = {};
-(function (){
- Function("a1,a2,a3","this.shifted=a1+a2+a3;").apply(obj,arguments);
-})("",4,2);
+(function() {
+ Function("a1,a2,a3", "this.shifted=a1+a2+a3;").apply(obj, arguments);
+})("", 4, 2);
//CHECK#1
if (obj["shifted"] !== "42") {
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T2.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T2.js
index fbfadbdb7..f54f65d30 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T2.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T2.js
@@ -9,7 +9,7 @@ es5id: 15.3.4.3_A7_T2
description: argArray is (null,[1,2,3])
---*/
-new Function("a1,a2","a3","this.shifted=a2;").apply(null,[1,2,3]);
+new Function("a1,a2", "a3", "this.shifted=a2;").apply(null, [1, 2, 3]);
//CHECK#1
if (this["shifted"] !== 2) {
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T3.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T3.js
index 1f27d4ef2..d4ce5fc1d 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T3.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T3.js
@@ -9,13 +9,17 @@ es5id: 15.3.4.3_A7_T3
description: argArray is (empty object, new Array("nine","inch","nails"))
---*/
-var i=0;
+var i = 0;
-var p={toString:function(){return "a"+(++i);}};
+var p = {
+ toString: function() {
+ return "a" + (++i);
+ }
+};
-var obj={};
+var obj = {};
-Function(p,"a2,a3","this.shifted=a1;").apply(obj, new Array("nine","inch","nails"));
+Function(p, "a2,a3", "this.shifted=a1;").apply(obj, new Array("nine", "inch", "nails"));
//CHECK#1
if (obj["shifted"] !== "nine") {
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T4.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T4.js
index a88cc9e73..9a747b4a1 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T4.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T4.js
@@ -11,13 +11,19 @@ description: >
("a","b","c"))
---*/
-var i=0;
+var i = 0;
-var p={toString:function(){return "a"+(++i);}};
+var p = {
+ toString: function() {
+ return "a" + (++i);
+ }
+};
-var obj={};
+var obj = {};
-new Function(p,p,p, "this.shifted=a3;").apply( obj,( function(){return arguments;}) ("a","b","c") );
+new Function(p, p, p, "this.shifted=a3;").apply(obj, (function() {
+ return arguments;
+})("a", "b", "c"));
//CHECK#1
if (obj["shifted"] !== "c") {
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T5.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T5.js
index 26d0b1a28..44ab20da0 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T5.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T5.js
@@ -9,11 +9,11 @@ es5id: 15.3.4.3_A7_T5
description: argArray is (null, arguments), inside function declaration used
---*/
-function FACTORY(){
- Function("a1,a2,a3","this.shifted=a1+a2+a3;").apply(null,arguments);
+function FACTORY() {
+ Function("a1,a2,a3", "this.shifted=a1+a2+a3;").apply(null, arguments);
}
-var obj=new FACTORY("",1,2);
+var obj = new FACTORY("", 1, 2);
//CHECK#1
if (this["shifted"] !== "12") {
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T6.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T6.js
index 2e2f76d64..23e9ac8ec 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T6.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T6.js
@@ -9,11 +9,11 @@ es5id: 15.3.4.3_A7_T6
description: argArray is (this, arguments), inside function declaration used
---*/
-function FACTORY(){
- Function("a1,a2,a3","this.shifted=a1+a2+a3;").apply(this,arguments);
+function FACTORY() {
+ Function("a1,a2,a3", "this.shifted=a1+a2+a3;").apply(this, arguments);
}
-var obj=new FACTORY("",4,2);
+var obj = new FACTORY("", 4, 2);
//CHECK#1
if (obj["shifted"] !== "42") {
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T7.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T7.js
index 0ee4e41ee..59dbd059a 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T7.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T7.js
@@ -11,9 +11,9 @@ description: >
declaration used
---*/
-(function (){
- Function("a1,a2,a3","this.shifted=a1+a2+a3;").apply(null,arguments);
-})("",1,2);
+(function() {
+ Function("a1,a2,a3", "this.shifted=a1+a2+a3;").apply(null, arguments);
+})("", 1, 2);
//CHECK#1
if (this["shifted"] !== "12") {
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T8.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T8.js
index b3cf86486..f0c0215cd 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T8.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T8.js
@@ -11,9 +11,9 @@ description: >
declaration used
---*/
-(function (){
- Function("a1,a2,a3","this.shifted=a1+a2+a3;").apply(this,arguments);
-})("",4,2);
+(function() {
+ Function("a1,a2,a3", "this.shifted=a1+a2+a3;").apply(this, arguments);
+})("", 4, 2);
//CHECK#2
if (this["shifted"] !== "42") {
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T9.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T9.js
index 8781ceff1..d478bc629 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T9.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A7_T9.js
@@ -11,13 +11,13 @@ description: >
used
---*/
-function FACTORY(){
+function FACTORY() {
var obj = {};
- Function("a1,a2,a3","this.shifted=a1+a2+a3;").apply(obj,arguments);
+ Function("a1,a2,a3", "this.shifted=a1+a2+a3;").apply(obj, arguments);
return obj;
}
-var obj=new FACTORY("",1,2);
+var obj = new FACTORY("", 1, 2);
//CHECK#1
if (typeof this["shifted"] !== "undefined") {
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A8_T4.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A8_T4.js
index 0279d3e1e..75eeb6534 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A8_T4.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A8_T4.js
@@ -8,7 +8,7 @@ description: Checking if creating "new (Function("this.p1=1").apply)" fails
---*/
try {
- var obj = new (Function("this.p1=1").apply);
+ var obj = new(Function("this.p1=1").apply);
$ERROR('#1: Function.prototype.apply can\'t be used as [[Construct]] caller');
} catch (e) {
if (!(e instanceof TypeError)) {
diff --git a/test/built-ins/Function/prototype/apply/S15.3.4.3_A8_T6.js b/test/built-ins/Function/prototype/apply/S15.3.4.3_A8_T6.js
index ea44af1c2..94169ef9d 100644
--- a/test/built-ins/Function/prototype/apply/S15.3.4.3_A8_T6.js
+++ b/test/built-ins/Function/prototype/apply/S15.3.4.3_A8_T6.js
@@ -11,12 +11,12 @@ description: >
//CHECK#1
try {
- var obj = new (Function("function f(){this.p1=1;};return f").apply());
+ var obj = new(Function("function f(){this.p1=1;};return f").apply());
} catch (e) {
$ERROR('#1: Function.prototype.apply can\'t be used as [[Construct]] caller');
}
//CHECK#2
-if (obj.p1!== 1) {
+if (obj.p1 !== 1) {
$ERROR('#2: Function.prototype.apply can\'t be used as [[Construct]] caller');
}
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-0-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5-0-1.js
index 721390cf7..6a5c1ec34 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-0-1.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-0-1.js
@@ -6,6 +6,6 @@ es5id: 15.3.4.5-0-1
description: Function.prototype.bind must exist as a function
---*/
- var f = Function.prototype.bind;
+var f = Function.prototype.bind;
assert.sameValue(typeof(f), "function", 'typeof(f)');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-10-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5-10-1.js
index 7486fce8d..757d27d50 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-10-1.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-10-1.js
@@ -8,8 +8,8 @@ description: >
set as Function
---*/
- var foo = function () { };
+var foo = function() {};
- var obj = foo.bind({});
+var obj = foo.bind({});
assert.sameValue(Object.prototype.toString.call(obj), "[object Function]", 'Object.prototype.toString.call(obj)');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-11-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5-11-1.js
index 924da6e02..cc302b88d 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-11-1.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-11-1.js
@@ -8,9 +8,9 @@ description: >
is set as Function.prototype
---*/
- var foo = function () { };
+var foo = function() {};
- Function.prototype.property = 12;
- var obj = foo.bind({});
+Function.prototype.property = 12;
+var obj = foo.bind({});
assert.sameValue(obj.property, 12, 'obj.property');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-1.js
index 76a189908..c1dfb471a 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-1.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-1.js
@@ -6,9 +6,9 @@ es5id: 15.3.4.5-13.b-1
description: Function.prototype.bind, bound fn has a 'length' own property
---*/
- function foo() { }
- var o = {};
-
- var bf = foo.bind(o);
+function foo() {}
+var o = {};
+
+var bf = foo.bind(o);
assert(bf.hasOwnProperty('length'), 'bf.hasOwnProperty("length") !== true');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-2.js b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-2.js
index d0aedf906..a99ce8cd2 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-2.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-2.js
@@ -8,9 +8,9 @@ description: >
expected args
---*/
- function foo(x, y) { }
- var o = {};
-
- var bf = foo.bind(o);
+function foo(x, y) {}
+var o = {};
+
+var bf = foo.bind(o);
assert.sameValue(bf.length, 2, 'bf.length');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-3.js b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-3.js
index b2a968ed3..c712aad44 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-3.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-3.js
@@ -8,9 +8,9 @@ description: >
expected args (all args prefilled)
---*/
- function foo(x, y) { }
- var o = {};
-
- var bf = foo.bind(o, 42, 101);
+function foo(x, y) {}
+var o = {};
+
+var bf = foo.bind(o, 42, 101);
assert.sameValue(bf.length, 0, 'bf.length');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-4.js b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-4.js
index 152d1eb8b..8fe162a20 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-4.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-4.js
@@ -8,9 +8,9 @@ description: >
expected args (target takes 0 args)
---*/
- function foo() { }
- var o = {};
-
- var bf = foo.bind(o);
+function foo() {}
+var o = {};
+
+var bf = foo.bind(o);
assert.sameValue(bf.length, 0, 'bf.length');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-5.js b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-5.js
index fcf6139fa..c95236da2 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-5.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-5.js
@@ -8,9 +8,9 @@ description: >
expected args (target provided extra args)
---*/
- function foo() { }
- var o = {};
-
- var bf = foo.bind(o, 42);
+function foo() {}
+var o = {};
+
+var bf = foo.bind(o, 42);
assert.sameValue(bf.length, 0, 'bf.length');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-6.js b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-6.js
index 038084b1a..8b50e1347 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-6.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-13.b-6.js
@@ -8,9 +8,9 @@ description: >
expected args
---*/
- function foo(x, y) { }
- var o = {};
+function foo(x, y) {}
+var o = {};
- var bf = foo.bind(o, 42);
+var bf = foo.bind(o, 42);
assert.sameValue(bf.length, 1, 'bf.length');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-15-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5-15-1.js
index ff341342e..e2ca7cfe8 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-15-1.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-15-1.js
@@ -6,11 +6,11 @@ es5id: 15.3.4.5-15-1
description: Function.prototype.bind, 'length' is a data valued own property
---*/
- function foo() { }
- var o = {};
-
- var bf = foo.bind(o);
- var desc = Object.getOwnPropertyDescriptor(bf, 'length');
+function foo() {}
+var o = {};
+
+var bf = foo.bind(o);
+var desc = Object.getOwnPropertyDescriptor(bf, 'length');
assert.sameValue(desc.hasOwnProperty('value'), true, 'desc.hasOwnProperty("value")');
assert.sameValue(desc.hasOwnProperty('get'), false, 'desc.hasOwnProperty("get")');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-15-2.js b/test/built-ins/Function/prototype/bind/15.3.4.5-15-2.js
index 19ed95b0d..11cad43ed 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-15-2.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-15-2.js
@@ -7,11 +7,11 @@ description: >
Function.prototype.bind, 'length' is a data valued own property
---*/
- function foo() { }
- var o = {};
-
- var bf = foo.bind(o);
- var desc = Object.getOwnPropertyDescriptor(bf, 'length');
+function foo() {}
+var o = {};
+
+var bf = foo.bind(o);
+var desc = Object.getOwnPropertyDescriptor(bf, 'length');
assert.sameValue(desc.value, 0, 'desc.value');
assert.sameValue(desc.enumerable, false, 'desc.enumerable');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-15-3.js b/test/built-ins/Function/prototype/bind/15.3.4.5-15-3.js
index f0305bbe4..8c5f06f4c 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-15-3.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-15-3.js
@@ -9,7 +9,7 @@ description: >
includes: [propertyHelper.js]
---*/
-function foo() { }
+function foo() {}
var obj = foo.bind({});
var flength = obj.length;
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-15-4.js b/test/built-ins/Function/prototype/bind/15.3.4.5-15-4.js
index f0f5a41e6..1ac7dc4c6 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-15-4.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-15-4.js
@@ -8,16 +8,17 @@ description: >
property in F set as false
---*/
- var canEnumerable = false;
- var hasProperty = false;
- function foo() { }
- var obj = foo.bind({});
- hasProperty = obj.hasOwnProperty("length");
- for (var prop in obj) {
- if (prop === "length") {
- canEnumerable = true;
- }
- }
+var canEnumerable = false;
+var hasProperty = false;
+
+function foo() {}
+var obj = foo.bind({});
+hasProperty = obj.hasOwnProperty("length");
+for (var prop in obj) {
+ if (prop === "length") {
+ canEnumerable = true;
+ }
+}
assert(hasProperty, 'hasProperty !== true');
assert.sameValue(canEnumerable, false, 'canEnumerable');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-15-5.js b/test/built-ins/Function/prototype/bind/15.3.4.5-15-5.js
index 9a0e9fe66..447d9d617 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-15-5.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-15-5.js
@@ -8,13 +8,14 @@ description: >
property in F set as true
---*/
- var canConfigurable = false;
- var hasProperty = false;
- function foo() { }
- var obj = foo.bind({});
- hasProperty = obj.hasOwnProperty("length");
- delete obj.length;
- canConfigurable = !obj.hasOwnProperty("length");
+var canConfigurable = false;
+var hasProperty = false;
+
+function foo() {}
+var obj = foo.bind({});
+hasProperty = obj.hasOwnProperty("length");
+delete obj.length;
+canConfigurable = !obj.hasOwnProperty("length");
assert(hasProperty, 'hasProperty !== true');
assert(canConfigurable, 'canConfigurable !== true');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-16-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5-16-1.js
index 385cc179a..ddec313c6 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-16-1.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-16-1.js
@@ -6,10 +6,10 @@ es5id: 15.3.4.5-16-1
description: Function.prototype.bind, [[Extensible]] of the bound fn is true
---*/
- function foo() { }
- var o = {};
-
- var bf = foo.bind(o);
- var ex = Object.isExtensible(bf);
+function foo() {}
+var o = {};
+
+var bf = foo.bind(o);
+var ex = Object.isExtensible(bf);
assert.sameValue(ex, true, 'ex');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-16-2.js b/test/built-ins/Function/prototype/bind/15.3.4.5-16-2.js
index 0a1d79541..2bb3449a6 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-16-2.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-16-2.js
@@ -8,8 +8,8 @@ description: >
property in F set as true
---*/
- function foo() { }
- var obj = foo.bind({});
- obj.property = 12;
+function foo() {}
+var obj = foo.bind({});
+obj.property = 12;
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-1.js
index 22274ec43..4fe22c9ad 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-1.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-1.js
@@ -11,10 +11,10 @@ description: >
callable (but an instance of Function)
---*/
- foo.prototype = Function.prototype;
- // dummy function
- function foo() {}
- var f = new foo();
+foo.prototype = Function.prototype;
+// dummy function
+function foo() {}
+var f = new foo();
assert.throws(TypeError, function() {
- f.bind();
+ f.bind();
});
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-10.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-10.js
index b7cc355aa..d351a8085 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-10.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-10.js
@@ -8,5 +8,5 @@ description: Function.prototype.bind throws TypeError if 'Target' is undefined
assert.throws(TypeError, function() {
- Function.prototype.bind.call(undefined);
+ Function.prototype.bind.call(undefined);
});
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-11.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-11.js
index a6b2d2536..cb8b5bb00 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-11.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-11.js
@@ -8,5 +8,5 @@ description: Function.prototype.bind throws TypeError if 'Target' is NULL
assert.throws(TypeError, function() {
- Function.prototype.bind.call(null);
+ Function.prototype.bind.call(null);
});
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-12.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-12.js
index ac81d90cb..bb5299cb6 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-12.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-12.js
@@ -8,5 +8,5 @@ description: Function.prototype.bind throws TypeError if 'Target' is a boolean
assert.throws(TypeError, function() {
- Function.prototype.bind.call(true);
+ Function.prototype.bind.call(true);
});
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-13.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-13.js
index 0745139ad..8e99cd6f6 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-13.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-13.js
@@ -8,5 +8,5 @@ description: Function.prototype.bind throws TypeError if 'Target' is a number
assert.throws(TypeError, function() {
- Function.prototype.bind.call(5);
+ Function.prototype.bind.call(5);
});
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-14.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-14.js
index 64b0899f7..48710b1df 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-14.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-14.js
@@ -8,5 +8,5 @@ description: Function.prototype.bind throws TypeError if 'Target' is a string
assert.throws(TypeError, function() {
- Function.prototype.bind.call("abc");
+ Function.prototype.bind.call("abc");
});
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-15.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-15.js
index 887441b2c..83c763a95 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-15.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-15.js
@@ -10,5 +10,5 @@ description: >
assert.throws(TypeError, function() {
- Function.prototype.bind.call({});
+ Function.prototype.bind.call({});
});
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-16.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-16.js
index 4d72a31fe..55832a1c1 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-16.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-16.js
@@ -6,6 +6,6 @@ es5id: 15.3.4.5-2-16
description: Function.prototype.bind - 'Target' is a function
---*/
- function testFunc() {}
+function testFunc() {}
- testFunc.bind();
+testFunc.bind();
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-2.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-2.js
index 17fc39e38..83f9770a8 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-2.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-2.js
@@ -11,10 +11,10 @@ description: >
callable (bind attached to object)
---*/
- // dummy function
- function foo() {}
- var f = new foo();
- f.bind = Function.prototype.bind;
+// dummy function
+function foo() {}
+var f = new foo();
+f.bind = Function.prototype.bind;
assert.throws(TypeError, function() {
- f.bind();
+ f.bind();
});
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-3.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-3.js
index 72842e357..38baf8fa0 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-3.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-3.js
@@ -9,7 +9,7 @@ es5id: 15.3.4.5-2-3
description: Function.prototype.bind allows Target to be a constructor (Number)
---*/
- var bnc = Number.bind(null);
- var n = bnc(42);
+var bnc = Number.bind(null);
+var n = bnc(42);
assert.sameValue(n, 42, 'n');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-4.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-4.js
index b33445051..c4c97b310 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-4.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-4.js
@@ -9,7 +9,7 @@ es5id: 15.3.4.5-2-4
description: Function.prototype.bind allows Target to be a constructor (String)
---*/
- var bsc = String.bind(null);
- var s = bsc("hello world");
+var bsc = String.bind(null);
+var s = bsc("hello world");
assert.sameValue(s, "hello world", 's');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-5.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-5.js
index 935f654cb..893d19b53 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-5.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-5.js
@@ -9,7 +9,7 @@ es5id: 15.3.4.5-2-5
description: Function.prototype.bind allows Target to be a constructor (Boolean)
---*/
- var bbc = Boolean.bind(null);
- var b = bbc(true);
+var bbc = Boolean.bind(null);
+var b = bbc(true);
assert.sameValue(b, true, 'b');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-6.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-6.js
index e9924b7d2..d659c61b0 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-6.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-6.js
@@ -9,7 +9,7 @@ es5id: 15.3.4.5-2-6
description: Function.prototype.bind allows Target to be a constructor (Object)
---*/
- var boc = Object.bind(null);
- var o = boc(42);
+var boc = Object.bind(null);
+var o = boc(42);
assert((o == 42), '(o == 42) !== true');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-7.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-7.js
index 8df945394..124f1f87e 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-7.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-7.js
@@ -13,5 +13,5 @@ description: >
assert.throws(TypeError, function() {
- JSON.bind();
+ JSON.bind();
});
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-8.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-8.js
index 79efe3ccf..99474ac4d 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-8.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-8.js
@@ -9,10 +9,10 @@ es5id: 15.3.4.5-2-8
description: Function.prototype.bind allows Target to be a constructor (Array)
---*/
- var bac = Array.bind(null);
- var a = bac(42);
- a.prop = "verifyPropertyExist";
- a[41] = 41;
+var bac = Array.bind(null);
+var a = bac(42);
+a.prop = "verifyPropertyExist";
+a[41] = 41;
assert.sameValue(a.prop, "verifyPropertyExist", 'a.prop');
assert.sameValue(a[41], 41, 'a[41]');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-2-9.js b/test/built-ins/Function/prototype/bind/15.3.4.5-2-9.js
index 337e8b6da..f16e2404f 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-2-9.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-2-9.js
@@ -6,7 +6,7 @@ es5id: 15.3.4.5-2-9
description: Function.prototype.bind allows Target to be a constructor (Date)
---*/
- var bdc = Date.bind(null);
- var s = bdc(0, 0, 0);
+var bdc = Date.bind(null);
+var s = bdc(0, 0, 0);
assert.sameValue(typeof(s), 'string', 'typeof(s)');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-20-2.js b/test/built-ins/Function/prototype/bind/15.3.4.5-20-2.js
index c07b78a05..ce141fdab 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-20-2.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-20-2.js
@@ -8,9 +8,9 @@ description: >
in 'F' is thrower
---*/
- function foo() { }
- var obj = foo.bind({});
+function foo() {}
+var obj = foo.bind({});
assert.throws(TypeError, function() {
- obj.caller;
+ obj.caller;
});
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-20-3.js b/test/built-ins/Function/prototype/bind/15.3.4.5-20-3.js
index 15516ceb6..b3f830dbb 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-20-3.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-20-3.js
@@ -8,8 +8,8 @@ description: >
in 'F' is thrower
---*/
- function foo() { }
- var obj = foo.bind({});
+function foo() {}
+var obj = foo.bind({});
assert.throws(TypeError, function() {
- obj.caller = 12;
+ obj.caller = 12;
});
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-21-2.js b/test/built-ins/Function/prototype/bind/15.3.4.5-21-2.js
index 8779bc06d..2d7c5dfca 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-21-2.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-21-2.js
@@ -8,9 +8,9 @@ description: >
property in 'F' is thrower
---*/
- function foo() { }
- var obj = foo.bind({});
+function foo() {}
+var obj = foo.bind({});
assert.throws(TypeError, function() {
- obj.arguments;
+ obj.arguments;
});
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-21-3.js b/test/built-ins/Function/prototype/bind/15.3.4.5-21-3.js
index c132f9d09..34bf7d6f2 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-21-3.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-21-3.js
@@ -8,8 +8,8 @@ description: >
property in 'F' is thrower
---*/
- function foo() { }
- var obj = foo.bind({});
+function foo() {}
+var obj = foo.bind({});
assert.throws(TypeError, function() {
- obj.arguments = 12;
+ obj.arguments = 12;
});
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-3-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5-3-1.js
index 0a88f6d3b..f6aab4e45 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-3-1.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-3-1.js
@@ -6,11 +6,11 @@ es5id: 15.3.4.5-3-1
description: Function.prototype.bind - each arg is defined in A in list order
---*/
- var foo = function (x, y) {
- return new Boolean((x + y) === "ab" && arguments[0] === "a" &&
- arguments[1] === "b" && arguments.length === 2);
- };
+var foo = function(x, y) {
+ return new Boolean((x + y) === "ab" && arguments[0] === "a" &&
+ arguments[1] === "b" && arguments.length === 2);
+};
- var obj = foo.bind({}, "a", "b");
+var obj = foo.bind({}, "a", "b");
assert((obj() == true), '(obj() == true) !== true');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-1.js
index 89e32473e..5a2427399 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-1.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-1.js
@@ -6,9 +6,9 @@ es5id: 15.3.4.5-6-1
description: Function.prototype.bind - F can get own data property
---*/
- var foo = function () { };
+var foo = function() {};
- var obj = foo.bind({});
- obj.property = 12;
+var obj = foo.bind({});
+obj.property = 12;
assert.sameValue(obj.property, 12, 'obj.property');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-10.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-10.js
index d4d1b0996..7d46c866e 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-10.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-10.js
@@ -8,19 +8,19 @@ description: >
a get function that overrides an inherited accessor property
---*/
- var foo = function () { };
+var foo = function() {};
- var obj = foo.bind({});
+var obj = foo.bind({});
- Object.defineProperty(Function.prototype, "property", {
- get: function () {
- return 3;
- },
- configurable: true
- });
+Object.defineProperty(Function.prototype, "property", {
+ get: function() {
+ return 3;
+ },
+ configurable: true
+});
- Object.defineProperty(obj, "property", {
- set: function () { }
- });
+Object.defineProperty(obj, "property", {
+ set: function() {}
+});
-assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)');
+assert.sameValue(typeof(obj.property), "undefined", 'typeof (obj.property)');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-11.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-11.js
index 2f3939817..3febd3790 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-11.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-11.js
@@ -8,13 +8,13 @@ description: >
without a get function
---*/
- var foo = function () { };
+var foo = function() {};
- var obj = foo.bind({});
+var obj = foo.bind({});
- Object.defineProperty(Function.prototype, "property", {
- set: function () { },
- configurable: true
- });
+Object.defineProperty(Function.prototype, "property", {
+ set: function() {},
+ configurable: true
+});
-assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)');
+assert.sameValue(typeof(obj.property), "undefined", 'typeof (obj.property)');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-12.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-12.js
index 416294bc0..8ac9fab50 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-12.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-12.js
@@ -6,8 +6,8 @@ es5id: 15.3.4.5-6-12
description: Function.prototype.bind - F cannot get property which doesn't exist
---*/
- var foo = function () { };
+var foo = function() {};
- var obj = foo.bind({});
+var obj = foo.bind({});
-assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)');
+assert.sameValue(typeof(obj.property), "undefined", 'typeof (obj.property)');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-2.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-2.js
index e6718ada4..b770d4876 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-2.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-2.js
@@ -6,10 +6,10 @@ es5id: 15.3.4.5-6-2
description: Function.prototype.bind - F can get inherited data property
---*/
- var foo = function () { };
+var foo = function() {};
- var obj = foo.bind({});
+var obj = foo.bind({});
- Function.prototype.property = 12;
+Function.prototype.property = 12;
assert.sameValue(obj.property, 12, 'obj.property');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-3.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-3.js
index a3cc6aaac..ea79e26d2 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-3.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-3.js
@@ -8,11 +8,11 @@ description: >
overrides an inherited data property
---*/
- var foo = function () { };
+var foo = function() {};
- var obj = foo.bind({});
+var obj = foo.bind({});
- Function.prototype.property = 3;
- obj.property = 12;
+Function.prototype.property = 3;
+obj.property = 12;
assert.sameValue(obj.property, 12, 'obj.property');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-4.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-4.js
index 914e18209..f1c1bdb02 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-4.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-4.js
@@ -8,19 +8,19 @@ description: >
overrides an inherited accessor property
---*/
- var foo = function () { };
+var foo = function() {};
- var obj = foo.bind({});
+var obj = foo.bind({});
- Object.defineProperty(Function.prototype, "property", {
- get: function () {
- return 3;
- },
- configurable: true
- });
-
- Object.defineProperty(obj, "property", {
- value: 12
- });
+Object.defineProperty(Function.prototype, "property", {
+ get: function() {
+ return 3;
+ },
+ configurable: true
+});
+
+Object.defineProperty(obj, "property", {
+ value: 12
+});
assert.sameValue(obj.property, 12, 'obj.property');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-5.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-5.js
index e75c71ee1..4f12d470a 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-5.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-5.js
@@ -6,13 +6,13 @@ es5id: 15.3.4.5-6-5
description: Function.prototype.bind - F can get own accessor property
---*/
- var foo = function () { };
+var foo = function() {};
- var obj = foo.bind({});
- Object.defineProperty(obj, "property", {
- get: function () {
- return 12;
- }
- });
+var obj = foo.bind({});
+Object.defineProperty(obj, "property", {
+ get: function() {
+ return 12;
+ }
+});
assert.sameValue(obj.property, 12, 'obj.property');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-6.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-6.js
index 4abb56c50..d32741530 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-6.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-6.js
@@ -6,15 +6,15 @@ es5id: 15.3.4.5-6-6
description: Function.prototype.bind - F can get inherited accessor property
---*/
- var foo = function () { };
+var foo = function() {};
- var obj = foo.bind({});
+var obj = foo.bind({});
- Object.defineProperty(Function.prototype, "property", {
- get: function () {
- return 12;
- },
- configurable: true
- });
+Object.defineProperty(Function.prototype, "property", {
+ get: function() {
+ return 12;
+ },
+ configurable: true
+});
assert.sameValue(obj.property, 12, 'obj.property');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-7.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-7.js
index 7dc8018d1..a5037a2f4 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-7.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-7.js
@@ -8,15 +8,15 @@ description: >
overrides an inherited data property
---*/
- var foo = function () { };
+var foo = function() {};
- var obj = foo.bind({});
+var obj = foo.bind({});
- Function.prototype.property = 3;
- Object.defineProperty(obj, "property", {
- get: function () {
- return 12;
- }
- });
+Function.prototype.property = 3;
+Object.defineProperty(obj, "property", {
+ get: function() {
+ return 12;
+ }
+});
assert.sameValue(obj.property, 12, 'obj.property');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-8.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-8.js
index 65bf83aad..8ccd3143f 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-8.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-8.js
@@ -8,21 +8,21 @@ description: >
overrides an inherited accessor property
---*/
- var foo = function () { };
+var foo = function() {};
- var obj = foo.bind({});
+var obj = foo.bind({});
- Object.defineProperty(Function.prototype, "property", {
- get: function () {
- return 3;
- },
- configurable: true
- });
+Object.defineProperty(Function.prototype, "property", {
+ get: function() {
+ return 3;
+ },
+ configurable: true
+});
- Object.defineProperty(obj, "property", {
- get: function () {
- return 12;
- }
- });
+Object.defineProperty(obj, "property", {
+ get: function() {
+ return 12;
+ }
+});
assert.sameValue(obj.property, 12, 'obj.property');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-6-9.js b/test/built-ins/Function/prototype/bind/15.3.4.5-6-9.js
index bedb8acfb..6f2465005 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-6-9.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-6-9.js
@@ -8,12 +8,12 @@ description: >
a get function
---*/
- var foo = function () { };
+var foo = function() {};
- var obj = foo.bind({});
- Object.defineProperty(obj, "property", {
- set: function () {}
- });
+var obj = foo.bind({});
+Object.defineProperty(obj, "property", {
+ set: function() {}
+});
assert(obj.hasOwnProperty("property"), 'obj.hasOwnProperty("property") !== true');
-assert.sameValue(typeof (obj.property), "undefined", 'typeof (obj.property)');
+assert.sameValue(typeof(obj.property), "undefined", 'typeof (obj.property)');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-8-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5-8-1.js
index 3ef542bdc..71eda47c4 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-8-1.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-8-1.js
@@ -6,9 +6,9 @@ es5id: 15.3.4.5-8-1
description: Function.prototype.bind, type of bound function must be 'function'
---*/
- function foo() { }
- var o = {};
-
- var bf = foo.bind(o);
+function foo() {}
+var o = {};
+
+var bf = foo.bind(o);
assert.sameValue(typeof(bf), 'function', 'typeof(bf)');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-8-2.js b/test/built-ins/Function/prototype/bind/15.3.4.5-8-2.js
index cc9ca589b..7edffd174 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-8-2.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-8-2.js
@@ -8,10 +8,10 @@ description: >
'Function'
---*/
- function foo() { }
- var o = {};
-
- var bf = foo.bind(o);
- var s = Object.prototype.toString.call(bf);
+function foo() {}
+var o = {};
+
+var bf = foo.bind(o);
+var s = Object.prototype.toString.call(bf);
assert.sameValue(s, '[object Function]', 's');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-9-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5-9-1.js
index ff231a57b..b2e9a05b6 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-9-1.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-9-1.js
@@ -6,9 +6,9 @@ es5id: 15.3.4.5-9-1
description: Function.prototype.bind, [[Prototype]] is Function.prototype
---*/
- function foo() { }
- var o = {};
-
- var bf = foo.bind(o);
+function foo() {}
+var o = {};
+
+var bf = foo.bind(o);
assert(Function.prototype.isPrototypeOf(bf), 'Function.prototype.isPrototypeOf(bf) !== true');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5-9-2.js b/test/built-ins/Function/prototype/bind/15.3.4.5-9-2.js
index 597e3ca15..e8f93ad8d 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5-9-2.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5-9-2.js
@@ -8,9 +8,9 @@ description: >
(using getPrototypeOf)
---*/
- function foo() { }
- var o = {};
-
- var bf = foo.bind(o);
+function foo() {}
+var o = {};
+
+var bf = foo.bind(o);
assert.sameValue(Object.getPrototypeOf(bf), Function.prototype, 'Object.getPrototypeOf(bf)');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-1.js
index 9d386aa4f..d29e6ada9 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-1.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-1.js
@@ -9,10 +9,10 @@ description: >
[[TargetFunction]] when 'F' is called
---*/
- var func = function (x, y, z) {
- return x + y + z;
- };
+var func = function(x, y, z) {
+ return x + y + z;
+};
- var newFunc = Function.prototype.bind.call(func, {}, "a", "b", "c");
+var newFunc = Function.prototype.bind.call(func, {}, "a", "b", "c");
assert.sameValue(newFunc(), "abc", 'newFunc()');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-10.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-10.js
index 13c4a05bc..48116b915 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-10.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-10.js
@@ -8,12 +8,14 @@ description: >
'boundArgs' is 0, length of 'ExtraArgs' is 0, and with 'boundThis'
---*/
- var obj = { prop: "abc" };
+var obj = {
+ prop: "abc"
+};
- var func = function (x) {
- return this === obj && typeof x === "undefined";
- };
+var func = function(x) {
+ return this === obj && typeof x === "undefined";
+};
- var newFunc = Function.prototype.bind.call(func, obj);
+var newFunc = Function.prototype.bind.call(func, obj);
assert(newFunc(), 'newFunc() !== true');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-11.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-11.js
index 162dfdbc2..5f9e6167e 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-11.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-11.js
@@ -8,12 +8,14 @@ description: >
'boundArgs' is 0, length of 'ExtraArgs' is 1, and with 'boundThis'
---*/
- var obj = { prop: "abc" };
+var obj = {
+ prop: "abc"
+};
- var func = function (x) {
- return this === obj && x === 1 && arguments[0] === 1 && arguments.length === 1 && this.prop === "abc";
- };
+var func = function(x) {
+ return this === obj && x === 1 && arguments[0] === 1 && arguments.length === 1 && this.prop === "abc";
+};
- var newFunc = Function.prototype.bind.call(func, obj);
+var newFunc = Function.prototype.bind.call(func, obj);
assert(newFunc(1), 'newFunc(1) !== true');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-12.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-12.js
index 0185bd3e2..c2ac2a3dd 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-12.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-12.js
@@ -8,13 +8,15 @@ description: >
'boundArgs' is 0, length of 'ExtraArgs' is 2, and with 'boundThis'
---*/
- var obj = { prop: "abc" };
+var obj = {
+ prop: "abc"
+};
- var func = function (x) {
- return this === obj && x === 1 && arguments[1] === 2 &&
- arguments[0] === 1 && arguments.length === 2 && this.prop === "abc";
- };
+var func = function(x) {
+ return this === obj && x === 1 && arguments[1] === 2 &&
+ arguments[0] === 1 && arguments.length === 2 && this.prop === "abc";
+};
- var newFunc = Function.prototype.bind.call(func, obj);
+var newFunc = Function.prototype.bind.call(func, obj);
assert(newFunc(1, 2), 'newFunc(1, 2) !== true');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-13.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-13.js
index 477b95d8e..5bf792565 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-13.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-13.js
@@ -8,13 +8,15 @@ description: >
'boundArgs' is 1, length of 'ExtraArgs' is 0, and with 'boundThis'
---*/
- var obj = { prop: "abc" };
+var obj = {
+ prop: "abc"
+};
- var func = function (x) {
- return this === obj && x === 1 &&
- arguments[0] === 1 && arguments.length === 1 && this.prop === "abc";
- };
+var func = function(x) {
+ return this === obj && x === 1 &&
+ arguments[0] === 1 && arguments.length === 1 && this.prop === "abc";
+};
- var newFunc = Function.prototype.bind.call(func, obj, 1);
+var newFunc = Function.prototype.bind.call(func, obj, 1);
assert(newFunc(), 'newFunc() !== true');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-14.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-14.js
index 3c844f557..8090b28f3 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-14.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-14.js
@@ -8,13 +8,15 @@ description: >
'boundArgs' is 1, length of 'ExtraArgs' is 1, and with 'boundThis'
---*/
- var obj = { prop: "abc" };
+var obj = {
+ prop: "abc"
+};
- var func = function (x) {
- return this === obj && x === 1 && arguments[1] === 2 &&
- arguments[0] === 1 && arguments.length === 2 && this.prop === "abc";
- };
+var func = function(x) {
+ return this === obj && x === 1 && arguments[1] === 2 &&
+ arguments[0] === 1 && arguments.length === 2 && this.prop === "abc";
+};
- var newFunc = Function.prototype.bind.call(func, obj, 1);
+var newFunc = Function.prototype.bind.call(func, obj, 1);
assert(newFunc(2), 'newFunc(2) !== true');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-15.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-15.js
index 772059d8f..d10b5a53b 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-15.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-15.js
@@ -8,13 +8,15 @@ description: >
'boundArgs' is 2, length of 'ExtraArgs' is 0, and with 'boundThis'
---*/
- var obj = { prop: "abc" };
+var obj = {
+ prop: "abc"
+};
- var func = function (x) {
- return this === obj && x === 1 && arguments[1] === 2 &&
- arguments[0] === 1 && arguments.length === 2 && this.prop === "abc";
- };
+var func = function(x) {
+ return this === obj && x === 1 && arguments[1] === 2 &&
+ arguments[0] === 1 && arguments.length === 2 && this.prop === "abc";
+};
- var newFunc = Function.prototype.bind.call(func, obj, 1, 2);
+var newFunc = Function.prototype.bind.call(func, obj, 1, 2);
assert(newFunc(), 'newFunc() !== true');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-2.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-2.js
index 329b1e78c..77ad47716 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-2.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-2.js
@@ -9,12 +9,14 @@ description: >
when 'F' is called
---*/
- var obj = { "prop": "a" };
+var obj = {
+ "prop": "a"
+};
- var func = function () {
- return this;
- };
+var func = function() {
+ return this;
+};
- var newFunc = Function.prototype.bind.call(func, obj);
+var newFunc = Function.prototype.bind.call(func, obj);
assert.sameValue(newFunc(), obj, 'newFunc()');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-3.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-3.js
index c0bb824d0..138e22f6c 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-3.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-3.js
@@ -9,10 +9,10 @@ description: >
[[TargetFunction]] when 'F' is called
---*/
- var func = function (x, y, z) {
- return z;
- };
+var func = function(x, y, z) {
+ return z;
+};
- var newFunc = Function.prototype.bind.call(func, {}, "a", "b");
+var newFunc = Function.prototype.bind.call(func, {}, "a", "b");
assert.sameValue(newFunc("c"), "c", 'newFunc("c")');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-4.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-4.js
index 829615fff..c7575ddc3 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-4.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-4.js
@@ -9,10 +9,10 @@ description: >
'boundThis'
---*/
- var func = function () {
- return arguments.length === 0;
- };
+var func = function() {
+ return arguments.length === 0;
+};
- var newFunc = Function.prototype.bind.call(func);
+var newFunc = Function.prototype.bind.call(func);
assert(newFunc(), 'newFunc() !== true');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-5.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-5.js
index 7342bbdd3..40f2188b4 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-5.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-5.js
@@ -9,10 +9,10 @@ description: >
'boundThis'
---*/
- var func = function () {
- return arguments[0] === 1;
- };
+var func = function() {
+ return arguments[0] === 1;
+};
- var newFunc = Function.prototype.bind.call(func);
+var newFunc = Function.prototype.bind.call(func);
assert(newFunc(1), 'newFunc(1) !== true');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-6.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-6.js
index 88da5973c..4188a07b6 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-6.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-6.js
@@ -8,12 +8,14 @@ description: >
'boundArgs' is 0, length of 'ExtraArgs' is 0, and with 'boundThis'
---*/
- var obj = { prop: "abc" };
+var obj = {
+ prop: "abc"
+};
- var func = function () {
- return this === obj && arguments.length === 0;
- };
+var func = function() {
+ return this === obj && arguments.length === 0;
+};
- var newFunc = Function.prototype.bind.call(func, obj);
+var newFunc = Function.prototype.bind.call(func, obj);
assert(newFunc(), 'newFunc() !== true');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-7.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-7.js
index 2e90afd02..a541eaaad 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-7.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-7.js
@@ -8,12 +8,14 @@ description: >
'boundArgs' is 1, length of 'ExtraArgs' is 0, and with 'boundThis'
---*/
- var obj = { prop: "abc" };
+var obj = {
+ prop: "abc"
+};
- var func = function () {
- return this === obj && arguments[0] === 1;
- };
+var func = function() {
+ return this === obj && arguments[0] === 1;
+};
- var newFunc = Function.prototype.bind.call(func, obj, 1);
+var newFunc = Function.prototype.bind.call(func, obj, 1);
assert(newFunc(), 'newFunc() !== true');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-8.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-8.js
index 7203696e8..405ece18f 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-8.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-8.js
@@ -8,12 +8,14 @@ description: >
'boundArgs' is 0, length of 'ExtraArgs' is 1, and with 'boundThis'
---*/
- var obj = { prop: "abc" };
+var obj = {
+ prop: "abc"
+};
- var func = function () {
- return this === obj && arguments[0] === 1;
- };
+var func = function() {
+ return this === obj && arguments[0] === 1;
+};
- var newFunc = Function.prototype.bind.call(func, obj);
+var newFunc = Function.prototype.bind.call(func, obj);
assert(newFunc(1), 'newFunc(1) !== true');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-9.js b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-9.js
index 496a18584..d3c13c4e4 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-9.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.1-4-9.js
@@ -8,12 +8,14 @@ description: >
'boundArgs' is 1, length of 'ExtraArgs' is 1, and with 'boundThis'
---*/
- var obj = { prop: "abc" };
+var obj = {
+ prop: "abc"
+};
- var func = function () {
- return this === obj && arguments[0] === 1 && arguments[1] === 2;
- };
+var func = function() {
+ return this === obj && arguments[0] === 1 && arguments[1] === 2;
+};
- var newFunc = Function.prototype.bind.call(func, obj, 1);
+var newFunc = Function.prototype.bind.call(func, obj, 1);
assert(newFunc(2), 'newFunc(2) !== true');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-1.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-1.js
index 5088d7335..b71c21678 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-1.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-1.js
@@ -9,16 +9,16 @@ description: >
[[TargetFunction]] when 'F' is called as constructor
---*/
- var func = function (x, y, z) {
- var objResult = {};
- objResult.returnValue = x + y + z;
- objResult.returnVerifyResult = arguments[0] === "a" && arguments.length === 3;
- return objResult;
- };
+var func = function(x, y, z) {
+ var objResult = {};
+ objResult.returnValue = x + y + z;
+ objResult.returnVerifyResult = arguments[0] === "a" && arguments.length === 3;
+ return objResult;
+};
- var NewFunc = Function.prototype.bind.call(func, {}, "a", "b", "c");
+var NewFunc = Function.prototype.bind.call(func, {}, "a", "b", "c");
- var newInstance = new NewFunc();
+var newInstance = new NewFunc();
assert(newInstance.hasOwnProperty("returnValue"), 'newInstance.hasOwnProperty("returnValue") !== true');
assert.sameValue(newInstance.returnValue, "abc", 'newInstance.returnValue');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-10.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-10.js
index c3a9014e1..182b4bcec 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-10.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-10.js
@@ -8,12 +8,12 @@ description: >
'boundArgs' is 0, length of 'ExtraArgs' is 1
---*/
- var func = function (x) {
- return new Boolean(arguments.length === 1 && x === 1 && arguments[0] === 1);
- };
+var func = function(x) {
+ return new Boolean(arguments.length === 1 && x === 1 && arguments[0] === 1);
+};
- var NewFunc = Function.prototype.bind.call(func, {});
+var NewFunc = Function.prototype.bind.call(func, {});
- var newInstance = new NewFunc(1);
+var newInstance = new NewFunc(1);
assert.sameValue(newInstance.valueOf(), true, 'newInstance.valueOf()');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-11.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-11.js
index 1d385d081..7588ba3c6 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-11.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-11.js
@@ -8,12 +8,12 @@ description: >
'boundArgs' is 0, length of 'ExtraArgs' is 2
---*/
- var func = function (x) {
- return new Boolean(arguments.length === 2 && x === 1 && arguments[1] === 2 && arguments[0] === 1);
- };
+var func = function(x) {
+ return new Boolean(arguments.length === 2 && x === 1 && arguments[1] === 2 && arguments[0] === 1);
+};
- var NewFunc = Function.prototype.bind.call(func, {});
+var NewFunc = Function.prototype.bind.call(func, {});
- var newInstance = new NewFunc(1, 2);
+var newInstance = new NewFunc(1, 2);
assert.sameValue(newInstance.valueOf(), true, 'newInstance.valueOf()');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-12.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-12.js
index 2a3ab1bf2..cc813fe58 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-12.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-12.js
@@ -8,12 +8,12 @@ description: >
'boundArgs' is 1, length of 'ExtraArgs' is 0
---*/
- var func = function (x) {
- return new Boolean(arguments.length === 1 && x === 1 && arguments[0] === 1);
- };
+var func = function(x) {
+ return new Boolean(arguments.length === 1 && x === 1 && arguments[0] === 1);
+};
- var NewFunc = Function.prototype.bind.call(func, {}, 1);
+var NewFunc = Function.prototype.bind.call(func, {}, 1);
- var newInstance = new NewFunc();
+var newInstance = new NewFunc();
assert.sameValue(newInstance.valueOf(), true, 'newInstance.valueOf()');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-13.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-13.js
index ad86f0904..d31433b28 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-13.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-13.js
@@ -8,12 +8,12 @@ description: >
'boundArgs' is 1, length of 'ExtraArgs' is 1
---*/
- var func = function (x) {
- return new Boolean(arguments.length === 2 && x === 1 && arguments[1] === 2 && arguments[0] === 1);
- };
+var func = function(x) {
+ return new Boolean(arguments.length === 2 && x === 1 && arguments[1] === 2 && arguments[0] === 1);
+};
- var NewFunc = Function.prototype.bind.call(func, {}, 1);
+var NewFunc = Function.prototype.bind.call(func, {}, 1);
- var newInstance = new NewFunc(2);
+var newInstance = new NewFunc(2);
assert.sameValue(newInstance.valueOf(), true, 'newInstance.valueOf()');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-14.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-14.js
index e893ad5a8..2650b236f 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-14.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-14.js
@@ -8,12 +8,12 @@ description: >
'boundArgs' is 2, length of 'ExtraArgs' is 0
---*/
- var func = function (x) {
- return new Boolean(arguments.length === 2 && x === 1 && arguments[1] === 2 && arguments[0] === 1);
- };
+var func = function(x) {
+ return new Boolean(arguments.length === 2 && x === 1 && arguments[1] === 2 && arguments[0] === 1);
+};
- var NewFunc = Function.prototype.bind.call(func, {}, 1, 2);
+var NewFunc = Function.prototype.bind.call(func, {}, 1, 2);
- var newInstance = new NewFunc();
+var newInstance = new NewFunc();
assert.sameValue(newInstance.valueOf(), true, 'newInstance.valueOf()');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-2.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-2.js
index cdee9fae6..4109332f1 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-2.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-2.js
@@ -9,16 +9,16 @@ description: >
[[TargetFunction]] when 'F' is called as constructor
---*/
- var func = function (x, y, z) {
- var objResult = {};
- objResult.returnValue = x + y + z;
- objResult.returnVerifyResult = arguments[0] === "a" && arguments.length === 3;
- return objResult;
- };
+var func = function(x, y, z) {
+ var objResult = {};
+ objResult.returnValue = x + y + z;
+ objResult.returnVerifyResult = arguments[0] === "a" && arguments.length === 3;
+ return objResult;
+};
- var NewFunc = Function.prototype.bind.call(func, {});
+var NewFunc = Function.prototype.bind.call(func, {});
- var newInstance = new NewFunc("a", "b", "c");
+var newInstance = new NewFunc("a", "b", "c");
assert(newInstance.hasOwnProperty("returnValue"), 'newInstance.hasOwnProperty("returnValue") !== true');
assert.sameValue(newInstance.returnValue, "abc", 'newInstance.returnValue');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-3.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-3.js
index 535e38e0e..4e191f160 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-3.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-3.js
@@ -9,12 +9,12 @@ description: >
'boundThis'
---*/
- var func = function () {
- return new Boolean(arguments.length === 0);
- };
+var func = function() {
+ return new Boolean(arguments.length === 0);
+};
- var NewFunc = Function.prototype.bind.call(func);
+var NewFunc = Function.prototype.bind.call(func);
- var newInstance = new NewFunc();
+var newInstance = new NewFunc();
assert.sameValue(newInstance.valueOf(), true, 'newInstance.valueOf()');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-4.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-4.js
index 2fdf32fd3..c668db2ac 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-4.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-4.js
@@ -9,12 +9,12 @@ description: >
'boundThis'
---*/
- var func = function () {
- return new Boolean(arguments[0] === 1 && arguments.length === 1);
- };
+var func = function() {
+ return new Boolean(arguments[0] === 1 && arguments.length === 1);
+};
- var NewFunc = Function.prototype.bind.call(func);
+var NewFunc = Function.prototype.bind.call(func);
- var newInstance = new NewFunc(1);
+var newInstance = new NewFunc(1);
assert.sameValue(newInstance.valueOf(), true, 'newInstance.valueOf()');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-5.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-5.js
index 1bc2037b5..dc04a872e 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-5.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-5.js
@@ -8,16 +8,18 @@ description: >
'boundArgs' is 0, length of 'ExtraArgs' is 0, and with 'boundThis'
---*/
- var obj = { prop: "abc" };
+var obj = {
+ prop: "abc"
+};
- Object.prototype.verifyThis = "verifyThis";
- var func = function () {
- return new Boolean(arguments.length === 0 && Object.prototype.toString.call(this) === "[object Object]" &&
- this.verifyThis === "verifyThis");
- };
+Object.prototype.verifyThis = "verifyThis";
+var func = function() {
+ return new Boolean(arguments.length === 0 && Object.prototype.toString.call(this) === "[object Object]" &&
+ this.verifyThis === "verifyThis");
+};
- var NewFunc = Function.prototype.bind.call(func, obj);
+var NewFunc = Function.prototype.bind.call(func, obj);
- var newInstance = new NewFunc();
+var newInstance = new NewFunc();
assert(newInstance.valueOf(), 'newInstance.valueOf() !== true');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-6.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-6.js
index 1afb3b7cf..90fe291b0 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-6.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-6.js
@@ -8,12 +8,12 @@ description: >
'boundArgs' is 1, length of 'ExtraArgs' is 0
---*/
- var func = function () {
- return new Boolean(arguments.length === 1 && arguments[0] === 1);
- };
+var func = function() {
+ return new Boolean(arguments.length === 1 && arguments[0] === 1);
+};
- var NewFunc = Function.prototype.bind.call(func, {}, 1);
+var NewFunc = Function.prototype.bind.call(func, {}, 1);
- var newInstance = new NewFunc();
+var newInstance = new NewFunc();
assert.sameValue(newInstance.valueOf(), true, 'newInstance.valueOf()');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-7.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-7.js
index 085e9545e..217c01c90 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-7.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-7.js
@@ -8,12 +8,12 @@ description: >
'boundArgs' is 0, length of 'ExtraArgs' is 1
---*/
- var func = function () {
- return new Boolean(arguments.length === 1 && arguments[0] === 1);
- };
+var func = function() {
+ return new Boolean(arguments.length === 1 && arguments[0] === 1);
+};
- var NewFunc = Function.prototype.bind.call(func, {});
+var NewFunc = Function.prototype.bind.call(func, {});
- var newInstance = new NewFunc(1);
+var newInstance = new NewFunc(1);
assert.sameValue(newInstance.valueOf(), true, 'newInstance.valueOf()');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-8.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-8.js
index 4207a187c..2dc27e06c 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-8.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-8.js
@@ -8,12 +8,12 @@ description: >
'boundArgs' is 1, length of 'ExtraArgs' is 1
---*/
- var func = function () {
- return new Boolean(arguments.length === 2 && arguments[0] === 1 && arguments[1] === 2);
- };
+var func = function() {
+ return new Boolean(arguments.length === 2 && arguments[0] === 1 && arguments[1] === 2);
+};
- var NewFunc = Function.prototype.bind.call(func, {}, 1);
+var NewFunc = Function.prototype.bind.call(func, {}, 1);
- var newInstance = new NewFunc(2);
+var newInstance = new NewFunc(2);
assert.sameValue(newInstance.valueOf(), true, 'newInstance.valueOf()');
diff --git a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-9.js b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-9.js
index 4c25b405d..ff53ee612 100644
--- a/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-9.js
+++ b/test/built-ins/Function/prototype/bind/15.3.4.5.2-4-9.js
@@ -8,12 +8,12 @@ description: >
'boundArgs' is 0, length of 'ExtraArgs' is 0
---*/
- var func = function (x) {
- return new Boolean(arguments.length === 0 && typeof x === "undefined");
- };
+var func = function(x) {
+ return new Boolean(arguments.length === 0 && typeof x === "undefined");
+};
- var NewFunc = Function.prototype.bind.call(func, {});
+var NewFunc = Function.prototype.bind.call(func, {});
- var newInstance = new NewFunc();
+var newInstance = new NewFunc();
assert.sameValue(newInstance.valueOf(), true, 'newInstance.valueOf()');
diff --git a/test/built-ins/Function/prototype/bind/S15.3.4.5_A1.js b/test/built-ins/Function/prototype/bind/S15.3.4.5_A1.js
index 02d66d06d..cae9bb2ae 100644
--- a/test/built-ins/Function/prototype/bind/S15.3.4.5_A1.js
+++ b/test/built-ins/Function/prototype/bind/S15.3.4.5_A1.js
@@ -7,9 +7,14 @@ es5id: 15.3.4.5_A1
description: A bound function should fail to find its "caller"
---*/
-function foo() { return bar.caller; }
+function foo() {
+ return bar.caller;
+}
var bar = foo.bind({});
-function baz() { return bar(); }
+
+function baz() {
+ return bar();
+}
assert.throws(TypeError, function() {
baz();
diff --git a/test/built-ins/Function/prototype/bind/S15.3.4.5_A16.js b/test/built-ins/Function/prototype/bind/S15.3.4.5_A16.js
index 92d5f82d8..b53e5d61c 100644
--- a/test/built-ins/Function/prototype/bind/S15.3.4.5_A16.js
+++ b/test/built-ins/Function/prototype/bind/S15.3.4.5_A16.js
@@ -17,7 +17,7 @@ if (typeof re === 'function') {
try {
Function.prototype.bind.call(re, undefined);
$ERROR('#1: If IsCallable(func) is false, ' +
- 'then (bind should) throw a TypeError exception');
+ 'then (bind should) throw a TypeError exception');
} catch (e) {
if (!(e instanceof TypeError)) {
$ERROR('#1: TypeError expected. Actual: ' + e);
diff --git a/test/built-ins/Function/prototype/bind/S15.3.4.5_A2.js b/test/built-ins/Function/prototype/bind/S15.3.4.5_A2.js
index 25ef64935..d7dd27869 100644
--- a/test/built-ins/Function/prototype/bind/S15.3.4.5_A2.js
+++ b/test/built-ins/Function/prototype/bind/S15.3.4.5_A2.js
@@ -7,9 +7,14 @@ es5id: 15.3.4.5_A2
description: a bound function should fail to find the bound function "arguments"
---*/
-function foo() { return bar.arguments; }
+function foo() {
+ return bar.arguments;
+}
var bar = foo.bind({});
-function baz() { return bar(); }
+
+function baz() {
+ return bar();
+}
assert.throws(TypeError, function() {
baz();
diff --git a/test/built-ins/Function/prototype/bind/instance-name-chained.js b/test/built-ins/Function/prototype/bind/instance-name-chained.js
index a9ad72bb8..2b8ce18d6 100644
--- a/test/built-ins/Function/prototype/bind/instance-name-chained.js
+++ b/test/built-ins/Function/prototype/bind/instance-name-chained.js
@@ -13,7 +13,9 @@ info: |
includes: [propertyHelper.js]
---*/
-var target = Object.defineProperty(function() {}, 'name', { value: 'target' });
+var target = Object.defineProperty(function() {}, 'name', {
+ value: 'target'
+});
assert.sameValue(target.bind().bind().name, 'bound bound target');
verifyNotEnumerable(target.bind().bind(), 'name');
diff --git a/test/built-ins/Function/prototype/bind/instance-name-non-string.js b/test/built-ins/Function/prototype/bind/instance-name-non-string.js
index 4ef412a19..63e74038d 100644
--- a/test/built-ins/Function/prototype/bind/instance-name-non-string.js
+++ b/test/built-ins/Function/prototype/bind/instance-name-non-string.js
@@ -16,42 +16,54 @@ features: [Symbol]
var target;
-target = Object.defineProperty(function() {}, 'name', { value: undefined });
+target = Object.defineProperty(function() {}, 'name', {
+ value: undefined
+});
assert.sameValue(target.bind().name, 'bound ');
verifyNotEnumerable(target.bind(), 'name');
verifyNotWritable(target.bind(), 'name');
verifyConfigurable(target.bind(), 'name');
-target = Object.defineProperty(function() {}, 'name', { value: null });
+target = Object.defineProperty(function() {}, 'name', {
+ value: null
+});
assert.sameValue(target.bind().name, 'bound ');
verifyNotEnumerable(target.bind(), 'name');
verifyNotWritable(target.bind(), 'name');
verifyConfigurable(target.bind(), 'name');
-target = Object.defineProperty(function() {}, 'name', { value: true });
+target = Object.defineProperty(function() {}, 'name', {
+ value: true
+});
assert.sameValue(target.bind().name, 'bound ');
verifyNotEnumerable(target.bind(), 'name');
verifyNotWritable(target.bind(), 'name');
verifyConfigurable(target.bind(), 'name');
-target = Object.defineProperty(function() {}, 'name', { value: Symbol('s') });
+target = Object.defineProperty(function() {}, 'name', {
+ value: Symbol('s')
+});
assert.sameValue(target.bind().name, 'bound ');
verifyNotEnumerable(target.bind(), 'name');
verifyNotWritable(target.bind(), 'name');
verifyConfigurable(target.bind(), 'name');
-target = Object.defineProperty(function() {}, 'name', { value: 23 });
+target = Object.defineProperty(function() {}, 'name', {
+ value: 23
+});
assert.sameValue(target.bind().name, 'bound ');
verifyNotEnumerable(target.bind(), 'name');
verifyNotWritable(target.bind(), 'name');
verifyConfigurable(target.bind(), 'name');
-target = Object.defineProperty(function() {}, 'name', { value: {} });
+target = Object.defineProperty(function() {}, 'name', {
+ value: {}
+});
assert.sameValue(target.bind().name, 'bound ');
verifyNotEnumerable(target.bind(), 'name');
diff --git a/test/built-ins/Function/prototype/bind/instance-name.js b/test/built-ins/Function/prototype/bind/instance-name.js
index 1750d98d1..b69f8c655 100644
--- a/test/built-ins/Function/prototype/bind/instance-name.js
+++ b/test/built-ins/Function/prototype/bind/instance-name.js
@@ -12,7 +12,9 @@ info: |
includes: [propertyHelper.js]
---*/
-var target = Object.defineProperty(function() {}, 'name', { value: 'target' });
+var target = Object.defineProperty(function() {}, 'name', {
+ value: 'target'
+});
assert.sameValue(target.bind().name, 'bound target');
verifyNotEnumerable(target.bind(), 'name');
diff --git a/test/built-ins/Function/prototype/bind/proto-from-ctor-realm.js b/test/built-ins/Function/prototype/bind/proto-from-ctor-realm.js
index 76e163d46..1963de281 100644
--- a/test/built-ins/Function/prototype/bind/proto-from-ctor-realm.js
+++ b/test/built-ins/Function/prototype/bind/proto-from-ctor-realm.js
@@ -23,7 +23,7 @@ var other = $262.createRealm().global;
var C = new other.Function();
C.prototype = null;
-var D = function(){}.bind();
+var D = function() {}.bind();
var d = Reflect.construct(D, [], C);
diff --git a/test/built-ins/Function/prototype/call/15.3.4.4-1-s.js b/test/built-ins/Function/prototype/call/15.3.4.4-1-s.js
index a4f618bb1..a7e12df0d 100644
--- a/test/built-ins/Function/prototype/call/15.3.4.4-1-s.js
+++ b/test/built-ins/Function/prototype/call/15.3.4.4-1-s.js
@@ -10,8 +10,8 @@ description: >
flags: [onlyStrict]
---*/
- function fun() {
- return (this instanceof String);
- }
+function fun() {
+ return (this instanceof String);
+}
assert.sameValue(fun.call(""), false, 'fun.call("")');
diff --git a/test/built-ins/Function/prototype/call/15.3.4.4-2-s.js b/test/built-ins/Function/prototype/call/15.3.4.4-2-s.js
index 687003b5c..27563643a 100644
--- a/test/built-ins/Function/prototype/call/15.3.4.4-2-s.js
+++ b/test/built-ins/Function/prototype/call/15.3.4.4-2-s.js
@@ -10,8 +10,8 @@ description: >
flags: [onlyStrict]
---*/
- function fun() {
- return (this instanceof Number);
- }
+function fun() {
+ return (this instanceof Number);
+}
assert.sameValue(fun.call(-12), false, 'fun.call(-12)');
diff --git a/test/built-ins/Function/prototype/call/15.3.4.4-3-s.js b/test/built-ins/Function/prototype/call/15.3.4.4-3-s.js
index a92bdea11..cc7fb1998 100644
--- a/test/built-ins/Function/prototype/call/15.3.4.4-3-s.js
+++ b/test/built-ins/Function/prototype/call/15.3.4.4-3-s.js
@@ -10,8 +10,8 @@ description: >
flags: [onlyStrict]
---*/
- function fun() {
- return (this instanceof Boolean);
- }
+function fun() {
+ return (this instanceof Boolean);
+}
assert.sameValue(fun.call(false), false, 'fun.call(false)');
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A10.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A10.js
index dd8819d49..bf2aa724c 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A10.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A10.js
@@ -17,7 +17,9 @@ if (!(Function.prototype.call.hasOwnProperty('length'))) {
var obj = Function.prototype.call.length;
-verifyNotWritable(Function.prototype.call, "length", null, function(){return "shifted";});
+verifyNotWritable(Function.prototype.call, "length", null, function() {
+ return "shifted";
+});
//CHECK#2
if (Function.prototype.call.length !== obj) {
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A11.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A11.js
index c9be0531d..830678ae9 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A11.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A11.js
@@ -21,7 +21,7 @@ if (Function.prototype.call.propertyIsEnumerable('length')) {
}
// CHECK#2
-for (var p in Function.prototype.call){
- if (p==="length")
+for (var p in Function.prototype.call) {
+ if (p === "length")
$ERROR('#2: the Function.prototype.call.length property has the attributes DontEnum');
}
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A12.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A12.js
index a75e65fcb..dde3a6c71 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A12.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A12.js
@@ -11,5 +11,5 @@ description: >
//CHECK#1
if (Function.prototype.call.prototype !== undefined) {
- $ERROR('#1: Function.prototype.call has not prototype property'+Function.prototype.call.prototype);
+ $ERROR('#1: Function.prototype.call has not prototype property' + Function.prototype.call.prototype);
}
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A16.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A16.js
index 2bde783dd..383666a13 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A16.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A16.js
@@ -17,7 +17,7 @@ if (typeof re === 'function') {
try {
Function.prototype.bind.call(re, undefined);
$ERROR('#1: If IsCallable(func) is false, ' +
- 'then (bind should) throw a TypeError exception');
+ 'then (bind should) throw a TypeError exception');
} catch (e) {
if (!(e instanceof TypeError)) {
$ERROR('#1: TypeError expected. Actual: ' + e);
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A1_T1.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A1_T1.js
index 993391795..7d3f3dddb 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A1_T1.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A1_T1.js
@@ -12,11 +12,11 @@ description: >
property. Prototype of the object is Function()
---*/
-var proto=Function();
+var proto = Function();
-function FACTORY(){};
+function FACTORY() {};
-FACTORY.prototype=proto;
+FACTORY.prototype = proto;
var obj = new FACTORY;
@@ -31,6 +31,6 @@ try {
$ERROR('#2: If the object does not have a [[Call]] property, a TypeError exception is thrown');
} catch (e) {
if (!(e instanceof TypeError)) {
- $ERROR('#2.1: If the object does not have a [[Call]] property, a TypeError exception is thrown');
+ $ERROR('#2.1: If the object does not have a [[Call]] property, a TypeError exception is thrown');
}
}
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A1_T2.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A1_T2.js
index a07cbd0ef..de04b43dd 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A1_T2.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A1_T2.js
@@ -12,9 +12,9 @@ description: >
property. Prototype of the object is Function.prototype
---*/
-function FACTORY(){};
+function FACTORY() {};
-FACTORY.prototype=Function.prototype;
+FACTORY.prototype = Function.prototype;
var obj = new FACTORY;
@@ -29,6 +29,6 @@ try {
$ERROR('#2: If the object does not have a [[Call]] property, a TypeError exception is thrown');
} catch (e) {
if (!(e instanceof TypeError)) {
- $ERROR('#2.1: If the object does not have a [[Call]] property, a TypeError exception is thrown');
+ $ERROR('#2.1: If the object does not have a [[Call]] property, a TypeError exception is thrown');
}
}
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A2_T2.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A2_T2.js
index 45f06ff71..a6c9d6ead 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A2_T2.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A2_T2.js
@@ -7,7 +7,7 @@ es5id: 15.3.4.4_A2_T2
description: Checking f.call.length, where f is new Function
---*/
-var f=new Function;
+var f = new Function;
//CHECK#1
if (typeof f.call !== "function") {
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T5.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T5.js
index de55a0129..df370cdee 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T5.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T5.js
@@ -11,7 +11,7 @@ description: >
declaration
---*/
-function FACTORY(){
+function FACTORY() {
Function("this.feat=\"in da haus\"").call();
};
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T6.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T6.js
index 20a4d2fad..297d48abf 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T6.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T6.js
@@ -12,8 +12,10 @@ description: >
flags: [noStrict]
---*/
-function FACTORY(){
- (function(){this.feat="kamon beyba"}).call(null);
+function FACTORY() {
+ (function() {
+ this.feat = "kamon beyba"
+ }).call(null);
};
var obj = new FACTORY;
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T7.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T7.js
index b31ef5ae4..d6a3e721b 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T7.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T7.js
@@ -11,7 +11,7 @@ description: >
declaration
---*/
-(function FACTORY(){
+(function FACTORY() {
Function("this.feat=\"in da haus\"").call(void 0);
})();
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T8.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T8.js
index 06362d1a0..60ec21eb9 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T8.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T8.js
@@ -12,8 +12,10 @@ description: >
flags: [noStrict]
---*/
-(function FACTORY(){
- (function(){this.feat="kamon beyba"}).call(undefined);
+(function FACTORY() {
+ (function() {
+ this.feat = "kamon beyba"
+ }).call(undefined);
})();
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T9.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T9.js
index ead02bfc2..94e0aecc7 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T9.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A3_T9.js
@@ -9,7 +9,7 @@ es5id: 15.3.4.4_A3_T9
description: Checking by using eval, argument at call function is void 0
---*/
-eval( " Function(\"this.feat=1\").call(void 0) " );
+eval(" Function(\"this.feat=1\").call(void 0) ");
//CHECK#1
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T1.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T1.js
index 7e09b3902..91db8755e 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T1.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T1.js
@@ -9,7 +9,7 @@ es5id: 15.3.4.4_A5_T1
description: thisArg is number
---*/
-var obj=1;
+var obj = 1;
var retobj = Function("this.touched= true; return this;").call(obj);
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T2.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T2.js
index dd6f658ce..84b8fc456 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T2.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T2.js
@@ -9,7 +9,7 @@ es5id: 15.3.4.4_A5_T2
description: thisArg is boolean true
---*/
-var obj=true;
+var obj = true;
var retobj = new Function("this.touched= true; return this;").call(obj);
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T3.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T3.js
index d71867222..b4d2167fd 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T3.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T3.js
@@ -10,9 +10,12 @@ description: thisArg is string
flags: [noStrict]
---*/
-var obj="soap";
+var obj = "soap";
-var retobj = ( function(){this.touched= true; return this;} ).call(obj);
+var retobj = (function() {
+ this.touched = true;
+ return this;
+}).call(obj);
//CHECK#1
if (typeof obj.touched !== "undefined") {
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T4.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T4.js
index b0799cf00..23fa06219 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T4.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T4.js
@@ -10,7 +10,10 @@ description: thisArg is function variable that return this
flags: [noStrict]
---*/
-var f = function(){this.touched= true; return this;};
+var f = function() {
+ this.touched = true;
+ return this;
+};
var retobj = f.call(obj);
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T5.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T5.js
index a2e307928..9857f09e4 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T5.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T5.js
@@ -9,9 +9,11 @@ es5id: 15.3.4.4_A5_T5
description: thisArg is function variable
---*/
-var f = function(){this.touched= true;};
+var f = function() {
+ this.touched = true;
+};
-var obj={};
+var obj = {};
f.call(obj);
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T6.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T6.js
index e8fe5d4d8..7ffe1a4d6 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T6.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T6.js
@@ -9,9 +9,11 @@ es5id: 15.3.4.4_A5_T6
description: thisArg is new String()
---*/
-var obj=new String("soap");
+var obj = new String("soap");
-( function(){this.touched= true;}).call(obj);
+(function() {
+ this.touched = true;
+}).call(obj);
//CHECK#1
if (!(obj.touched)) {
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T7.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T7.js
index 7cbce9229..9dc90b7ca 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T7.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T7.js
@@ -9,7 +9,7 @@ es5id: 15.3.4.4_A5_T7
description: thisArg is new Number()
---*/
-var obj=new Number(1);
+var obj = new Number(1);
Function("this.touched= true;").call(obj);
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T8.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T8.js
index debf82396..9955eb6d5 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T8.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A5_T8.js
@@ -9,7 +9,7 @@ es5id: 15.3.4.4_A5_T8
description: thisArg is Function()
---*/
-var obj=Function();
+var obj = Function();
new Function("this.touched= true; return this;").call(obj);
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T1.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T1.js
index f8e0aba15..089063475 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T1.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T1.js
@@ -9,7 +9,7 @@ es5id: 15.3.4.4_A6_T1
description: Argunemts of call function is (null,[1])
---*/
-Function("a1,a2,a3","this.shifted=a1;").call(null,[1]);
+Function("a1,a2,a3", "this.shifted=a1;").call(null, [1]);
//CHECK#1
if (this["shifted"].constructor !== Array) {
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T10.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T10.js
index fed1b7aad..be97b1f58 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T10.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T10.js
@@ -11,11 +11,11 @@ description: >
inside function call without declaration used
---*/
-var obj={};
+var obj = {};
-(function (){
- Function("a1,a2,a3","this.shifted=a1.length+a2+a3;").call(obj,arguments,"","2");
-})("",4,2,"a");
+(function() {
+ Function("a1,a2,a3", "this.shifted=a1.length+a2+a3;").call(obj, arguments, "", "2");
+})("", 4, 2, "a");
//CHECK#1
if (obj["shifted"] !== "42") {
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T2.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T2.js
index 989080fa0..5620f4077 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T2.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T2.js
@@ -9,7 +9,7 @@ es5id: 15.3.4.4_A6_T2
description: Argunemts of call function is (null,[3,2,1])
---*/
-new Function("a1,a2","a3","this.shifted=a1;").call(null,[3,2,1]);
+new Function("a1,a2", "a3", "this.shifted=a1;").call(null, [3, 2, 1]);
//CHECK#1
if (this["shifted"].length !== 3) {
@@ -17,6 +17,6 @@ if (this["shifted"].length !== 3) {
}
//CHECK#2
-if ((this["shifted"][0] !== 3)||(this["shifted"][1] !== 2)||(this["shifted"][2] !== 1)) {
+if ((this["shifted"][0] !== 3) || (this["shifted"][1] !== 2) || (this["shifted"][2] !== 1)) {
$ERROR('#2: The call method takes one or more arguments, thisArg and (optionally) arg1, arg2 etc, and performs a function call using the [[Call]] property of the object');
}
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T3.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T3.js
index b70556e03..05368a6c2 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T3.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T3.js
@@ -11,13 +11,17 @@ description: >
Array("nine","inch","nails"))
---*/
-var i=0;
+var i = 0;
-var p={toString:function(){return "a"+(++i);}};
+var p = {
+ toString: function() {
+ return "a" + (++i);
+ }
+};
-var obj={};
+var obj = {};
-Function(p,"a2,a3","this.shifted=a1;").call(obj, new Array("nine","inch","nails"));
+Function(p, "a2,a3", "this.shifted=a1;").call(obj, new Array("nine", "inch", "nails"));
//CHECK#1
if (obj["shifted"].length !== 3) {
@@ -25,7 +29,7 @@ if (obj["shifted"].length !== 3) {
}
//CHECK#2
-if ((obj["shifted"][0] !== "nine")||(obj["shifted"][1] !== "inch")||(obj["shifted"][2] !== "nails")) {
+if ((obj["shifted"][0] !== "nine") || (obj["shifted"][1] !== "inch") || (obj["shifted"][2] !== "nails")) {
$ERROR('#2: The call method takes one or more arguments, thisArg and (optionally) arg1, arg2 etc, and performs a function call using the [[Call]] property of the object');
}
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T4.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T4.js
index 5b51b1d8e..312557514 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T4.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T4.js
@@ -11,13 +11,19 @@ description: >
arguments;})("a","b","c","d"),"",2)
---*/
-var i=0;
+var i = 0;
-var p={toString:function(){return "a"+(++i);}};
+var p = {
+ toString: function() {
+ return "a" + (++i);
+ }
+};
-var obj={};
+var obj = {};
-new Function(p,p,p, "this.shifted=a3+a2+a1.length;").call( obj,( function(){return arguments;})("a","b","c","d"),"",2 );
+new Function(p, p, p, "this.shifted=a3+a2+a1.length;").call(obj, (function() {
+ return arguments;
+})("a", "b", "c", "d"), "", 2);
//CHECK#1
if (obj["shifted"] !== "24") {
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T5.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T5.js
index b049d45ce..ac798300c 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T5.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T5.js
@@ -11,11 +11,11 @@ description: >
function declaration used
---*/
-function FACTORY(){
- Function("a1,a2,a3","this.shifted=a1.length+a2+a3;").call(null,arguments,"",2);
+function FACTORY() {
+ Function("a1,a2,a3", "this.shifted=a1.length+a2+a3;").call(null, arguments, "", 2);
}
-var obj=new FACTORY("",1,2,"A");
+var obj = new FACTORY("", 1, 2, "A");
//CHECK#1
if (this["shifted"] !== "42") {
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T6.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T6.js
index 597feba63..7956ab5ac 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T6.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T6.js
@@ -11,11 +11,11 @@ description: >
function declaration used
---*/
-function FACTORY(){
- Function("a1,a2,a3","this.shifted=a1.length+a2+a3;").call(this,arguments,"",2);
+function FACTORY() {
+ Function("a1,a2,a3", "this.shifted=a1.length+a2+a3;").call(this, arguments, "", 2);
}
-var obj=new FACTORY("",4,2,"A");
+var obj = new FACTORY("", 4, 2, "A");
//CHECK#1
if (obj["shifted"] !== "42") {
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T7.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T7.js
index cfce0647d..2c29c4725 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T7.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T7.js
@@ -11,9 +11,9 @@ description: >
function call without declaration used
---*/
-(function (){
- Function("a1,a2,a3","this.shifted=a1.length+a2+a3;").call(null,arguments,"",2);
-})("",1,2,true);
+(function() {
+ Function("a1,a2,a3", "this.shifted=a1.length+a2+a3;").call(null, arguments, "", 2);
+})("", 1, 2, true);
//CHECK#1
if (this["shifted"] !== "42") {
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T8.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T8.js
index 9601af80c..1978d9acf 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T8.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T8.js
@@ -11,9 +11,9 @@ description: >
function call without declaration used
---*/
-(function (){
- Function("a1,a2,a3","this.shifted=a1.length+a2+a3;").call(this,arguments,"",2);
-})("",4,2,null);
+(function() {
+ Function("a1,a2,a3", "this.shifted=a1.length+a2+a3;").call(this, arguments, "", 2);
+})("", 4, 2, null);
//CHECK#2
if (this["shifted"] !== "42") {
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T9.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T9.js
index d93a3e2a1..99bf13b9d 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T9.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A6_T9.js
@@ -11,13 +11,13 @@ description: >
inside function declaration used
---*/
-function FACTORY(){
+function FACTORY() {
var obj = {};
- Function("a1,a2,a3","this.shifted=a1+a2.length+a3;").call(obj,"",arguments,2);
+ Function("a1,a2,a3", "this.shifted=a1+a2.length+a3;").call(obj, "", arguments, 2);
return obj;
}
-var obj=new FACTORY("",1,2,void 0);
+var obj = new FACTORY("", 1, 2, void 0);
//CHECK#1
if (typeof this["shifted"] !== "undefined") {
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A7_T4.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A7_T4.js
index f3dee9603..7cec40c13 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A7_T4.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A7_T4.js
@@ -8,7 +8,7 @@ description: Checking if creating "new (Function("this.p1=1").call)" fails
---*/
try {
- var obj = new (Function("this.p1=1").call);
+ var obj = new(Function("this.p1=1").call);
$ERROR('#1: Function.prototype.call can\'t be used as [[Construct]] caller');
} catch (e) {
if (!(e instanceof TypeError)) {
diff --git a/test/built-ins/Function/prototype/call/S15.3.4.4_A7_T6.js b/test/built-ins/Function/prototype/call/S15.3.4.4_A7_T6.js
index d88e10c02..8bf0e67bb 100644
--- a/test/built-ins/Function/prototype/call/S15.3.4.4_A7_T6.js
+++ b/test/built-ins/Function/prototype/call/S15.3.4.4_A7_T6.js
@@ -11,12 +11,12 @@ description: >
//CHECK#1
try {
- var obj = new (Function("function f(){this.p1=1;};return f").call());
+ var obj = new(Function("function f(){this.p1=1;};return f").call());
} catch (e) {
$ERROR('#1: Function.prototype.call can\'t be used as [[Construct]] caller');
}
//CHECK#2
-if (obj.p1!== 1) {
+if (obj.p1 !== 1) {
$ERROR('#2: Function.prototype.call can\'t be used as [[Construct]] caller');
}
diff --git a/test/built-ins/Function/prototype/restricted-property-arguments.js b/test/built-ins/Function/prototype/restricted-property-arguments.js
index 5010b3dee..1faf047ba 100644
--- a/test/built-ins/Function/prototype/restricted-property-arguments.js
+++ b/test/built-ins/Function/prototype/restricted-property-arguments.js
@@ -17,7 +17,7 @@ assert.sameValue(typeof descriptor.set, 'function', '%FunctionPrototype%.argumen
assert.sameValue(descriptor.get, descriptor.set, '%FunctionPrototype%.arguments getter/setter are both %ThrowTypeError%');
assert.throws(TypeError, function() {
- return FunctionPrototype.arguments;
+ return FunctionPrototype.arguments;
});
assert.throws(TypeError, function() {
diff --git a/test/built-ins/Function/prototype/restricted-property-caller.js b/test/built-ins/Function/prototype/restricted-property-caller.js
index bd4003298..e069ee7c9 100644
--- a/test/built-ins/Function/prototype/restricted-property-caller.js
+++ b/test/built-ins/Function/prototype/restricted-property-caller.js
@@ -18,7 +18,7 @@ assert.sameValue(typeof descriptor.set, 'function', '%FunctionPrototype%.caller
assert.sameValue(descriptor.get, descriptor.set, '%FunctionPrototype%.caller getter/setter are both %ThrowTypeError%');
assert.throws(TypeError, function() {
- return FunctionPrototype.caller;
+ return FunctionPrototype.caller;
});
assert.throws(TypeError, function() {