summaryrefslogtreecommitdiff
path: root/test/built-ins/Proxy
diff options
context:
space:
mode:
authorLeo Balter <leonardo.balter@gmail.com>2017-09-22 14:14:06 -0400
committerRick Waldron <waldron.rick@gmail.com>2017-09-22 15:29:10 -0400
commit7cbbe512166f95db1a6638d3b866bf40dab17321 (patch)
tree0036e2c3c2a79704493c10ecaaab1399c5d1b335 /test/built-ins/Proxy
parent134bfcd2b3da17daf7261059768f6c1442ee68ba (diff)
downloadqtdeclarative-testsuites-7cbbe512166f95db1a6638d3b866bf40dab17321.tar.gz
Add cross-realm feature
Diffstat (limited to 'test/built-ins/Proxy')
-rw-r--r--test/built-ins/Proxy/apply/arguments-realm.js1
-rw-r--r--test/built-ins/Proxy/apply/trap-is-not-callable-realm.js1
-rw-r--r--test/built-ins/Proxy/construct/arguments-realm.js1
-rw-r--r--test/built-ins/Proxy/construct/trap-is-not-callable-realm.js1
-rw-r--r--test/built-ins/Proxy/construct/trap-is-undefined-proto-from-ctor-realm.js2
-rw-r--r--test/built-ins/Proxy/defineProperty/desc-realm.js1
-rw-r--r--test/built-ins/Proxy/defineProperty/null-handler-realm.js1
-rw-r--r--test/built-ins/Proxy/defineProperty/targetdesc-configurable-desc-not-configurable-realm.js1
-rw-r--r--test/built-ins/Proxy/defineProperty/targetdesc-not-compatible-descriptor-not-configurable-target-realm.js1
-rw-r--r--test/built-ins/Proxy/defineProperty/targetdesc-not-compatible-descriptor-realm.js1
-rw-r--r--test/built-ins/Proxy/defineProperty/targetdesc-undefined-not-configurable-descriptor-realm.js1
-rw-r--r--test/built-ins/Proxy/defineProperty/targetdesc-undefined-target-is-not-extensible-realm.js1
-rw-r--r--test/built-ins/Proxy/defineProperty/trap-is-not-callable-realm.js1
-rw-r--r--test/built-ins/Proxy/deleteProperty/trap-is-not-callable-realm.js1
-rw-r--r--test/built-ins/Proxy/get-fn-realm.js1
-rw-r--r--test/built-ins/Proxy/get/trap-is-not-callable-realm.js1
-rw-r--r--test/built-ins/Proxy/getOwnPropertyDescriptor/result-type-is-not-object-nor-undefined-realm.js1
-rw-r--r--test/built-ins/Proxy/getOwnPropertyDescriptor/trap-is-not-callable-realm.js1
-rw-r--r--test/built-ins/Proxy/getPrototypeOf/trap-is-not-callable-realm.js1
-rw-r--r--test/built-ins/Proxy/has/trap-is-not-callable-realm.js1
-rw-r--r--test/built-ins/Proxy/isExtensible/trap-is-not-callable-realm.js1
-rw-r--r--test/built-ins/Proxy/ownKeys/return-not-list-object-throws-realm.js2
-rw-r--r--test/built-ins/Proxy/ownKeys/trap-is-not-callable-realm.js1
-rw-r--r--test/built-ins/Proxy/preventExtensions/trap-is-not-callable-realm.js1
-rw-r--r--test/built-ins/Proxy/set/trap-is-not-callable-realm.js1
-rw-r--r--test/built-ins/Proxy/setPrototypeOf/trap-is-not-callable-realm.js1
26 files changed, 26 insertions, 2 deletions
diff --git a/test/built-ins/Proxy/apply/arguments-realm.js b/test/built-ins/Proxy/apply/arguments-realm.js
index b47d5966e..4fb3c3e0b 100644
--- a/test/built-ins/Proxy/apply/arguments-realm.js
+++ b/test/built-ins/Proxy/apply/arguments-realm.js
@@ -9,6 +9,7 @@ info: |
[...]
7. Let argArray be CreateArrayFromList(argumentsList).
8. Return ? Call(trap, handler, « target, thisArgument, argArray »).
+features: [cross-realm]
---*/
var f = $262.createRealm().global.eval(
diff --git a/test/built-ins/Proxy/apply/trap-is-not-callable-realm.js b/test/built-ins/Proxy/apply/trap-is-not-callable-realm.js
index a88845b4d..e9298ce27 100644
--- a/test/built-ins/Proxy/apply/trap-is-not-callable-realm.js
+++ b/test/built-ins/Proxy/apply/trap-is-not-callable-realm.js
@@ -6,6 +6,7 @@ es6id: 9.5.13
description: >
Throws if trap is not callable (honoring the Realm of the current execution
context)
+features: [cross-realm]
---*/
var OProxy = $262.createRealm().global.Proxy;
diff --git a/test/built-ins/Proxy/construct/arguments-realm.js b/test/built-ins/Proxy/construct/arguments-realm.js
index fe22d9c8a..b0a92a7ab 100644
--- a/test/built-ins/Proxy/construct/arguments-realm.js
+++ b/test/built-ins/Proxy/construct/arguments-realm.js
@@ -10,6 +10,7 @@ info: |
7. Let argArray be CreateArrayFromList(argumentsList).
8. Let newObj be ? Call(trap, handler, « target, argArray, newTarget »).
[...]
+features: [cross-realm]
---*/
var C = $262.createRealm().global.eval(
diff --git a/test/built-ins/Proxy/construct/trap-is-not-callable-realm.js b/test/built-ins/Proxy/construct/trap-is-not-callable-realm.js
index c556ce2ea..ea02b140a 100644
--- a/test/built-ins/Proxy/construct/trap-is-not-callable-realm.js
+++ b/test/built-ins/Proxy/construct/trap-is-not-callable-realm.js
@@ -6,6 +6,7 @@ es6id: 9.5.14
description: >
Throws if trap is not callable (honoring the Realm of the current execution
context)
+features: [cross-realm]
---*/
var OProxy = $262.createRealm().global.Proxy;
diff --git a/test/built-ins/Proxy/construct/trap-is-undefined-proto-from-ctor-realm.js b/test/built-ins/Proxy/construct/trap-is-undefined-proto-from-ctor-realm.js
index 56433dc7b..0fd99fc0f 100644
--- a/test/built-ins/Proxy/construct/trap-is-undefined-proto-from-ctor-realm.js
+++ b/test/built-ins/Proxy/construct/trap-is-undefined-proto-from-ctor-realm.js
@@ -20,7 +20,7 @@ info: >
a. Let realm be ? GetFunctionRealm(constructor).
b. Let proto be realm's intrinsic object named intrinsicDefaultProto.
[...]
-features: [Reflect.construct]
+features: [cross-realm, Reflect.construct]
---*/
var other = $262.createRealm().global;
diff --git a/test/built-ins/Proxy/defineProperty/desc-realm.js b/test/built-ins/Proxy/defineProperty/desc-realm.js
index 7bee5d9af..609ed7e14 100644
--- a/test/built-ins/Proxy/defineProperty/desc-realm.js
+++ b/test/built-ins/Proxy/defineProperty/desc-realm.js
@@ -21,6 +21,7 @@ info: |
2. Let obj be ObjectCreate(%ObjectPrototype%).
...
11. Return obj.
+features: [cross-realm]
---*/
var OProxy = $262.createRealm().global.Proxy;
diff --git a/test/built-ins/Proxy/defineProperty/null-handler-realm.js b/test/built-ins/Proxy/defineProperty/null-handler-realm.js
index 22039b300..746dea539 100644
--- a/test/built-ins/Proxy/defineProperty/null-handler-realm.js
+++ b/test/built-ins/Proxy/defineProperty/null-handler-realm.js
@@ -10,6 +10,7 @@ info: |
1. Assert: IsPropertyKey(P) is true.
2. Let handler be O.[[ProxyHandler]].
3. If handler is null, throw a TypeError exception.
+features: [cross-realm]
---*/
var OProxy = $262.createRealm().global.Proxy;
diff --git a/test/built-ins/Proxy/defineProperty/targetdesc-configurable-desc-not-configurable-realm.js b/test/built-ins/Proxy/defineProperty/targetdesc-configurable-desc-not-configurable-realm.js
index 747158e43..b87cfbfe5 100644
--- a/test/built-ins/Proxy/defineProperty/targetdesc-configurable-desc-not-configurable-realm.js
+++ b/test/built-ins/Proxy/defineProperty/targetdesc-configurable-desc-not-configurable-realm.js
@@ -15,6 +15,7 @@ info: |
b. If settingConfigFalse is true and targetDesc.[[Configurable]] is
true, throw a TypeError exception.
...
+features: [cross-realm]
---*/
var OProxy = $262.createRealm().global.Proxy;
diff --git a/test/built-ins/Proxy/defineProperty/targetdesc-not-compatible-descriptor-not-configurable-target-realm.js b/test/built-ins/Proxy/defineProperty/targetdesc-not-compatible-descriptor-not-configurable-target-realm.js
index 0b1e118ed..4d62b68c9 100644
--- a/test/built-ins/Proxy/defineProperty/targetdesc-not-compatible-descriptor-not-configurable-target-realm.js
+++ b/test/built-ins/Proxy/defineProperty/targetdesc-not-compatible-descriptor-not-configurable-target-realm.js
@@ -14,6 +14,7 @@ info: |
a. If IsCompatiblePropertyDescriptor(extensibleTarget, Desc ,
targetDesc) is false, throw a TypeError exception.
...
+features: [cross-realm]
---*/
var OProxy = $262.createRealm().global.Proxy;
diff --git a/test/built-ins/Proxy/defineProperty/targetdesc-not-compatible-descriptor-realm.js b/test/built-ins/Proxy/defineProperty/targetdesc-not-compatible-descriptor-realm.js
index dcdf89296..746998927 100644
--- a/test/built-ins/Proxy/defineProperty/targetdesc-not-compatible-descriptor-realm.js
+++ b/test/built-ins/Proxy/defineProperty/targetdesc-not-compatible-descriptor-realm.js
@@ -15,6 +15,7 @@ info: |
a. If IsCompatiblePropertyDescriptor(extensibleTarget, Desc ,
targetDesc) is false, throw a TypeError exception.
...
+features: [cross-realm]
---*/
var OProxy = $262.createRealm().global.Proxy;
diff --git a/test/built-ins/Proxy/defineProperty/targetdesc-undefined-not-configurable-descriptor-realm.js b/test/built-ins/Proxy/defineProperty/targetdesc-undefined-not-configurable-descriptor-realm.js
index a1d99efe8..b1f5b831e 100644
--- a/test/built-ins/Proxy/defineProperty/targetdesc-undefined-not-configurable-descriptor-realm.js
+++ b/test/built-ins/Proxy/defineProperty/targetdesc-undefined-not-configurable-descriptor-realm.js
@@ -15,6 +15,7 @@ info: |
...
b. If settingConfigFalse is true, throw a TypeError exception.
...
+features: [cross-realm]
---*/
var OProxy = $262.createRealm().global.Proxy;
diff --git a/test/built-ins/Proxy/defineProperty/targetdesc-undefined-target-is-not-extensible-realm.js b/test/built-ins/Proxy/defineProperty/targetdesc-undefined-target-is-not-extensible-realm.js
index 9fdfa2fad..9471abc13 100644
--- a/test/built-ins/Proxy/defineProperty/targetdesc-undefined-target-is-not-extensible-realm.js
+++ b/test/built-ins/Proxy/defineProperty/targetdesc-undefined-target-is-not-extensible-realm.js
@@ -14,6 +14,7 @@ info: |
19. If targetDesc is undefined, then
a. If extensibleTarget is false, throw a TypeError exception.
...
+features: [cross-realm]
---*/
var OProxy = $262.createRealm().global.Proxy;
diff --git a/test/built-ins/Proxy/defineProperty/trap-is-not-callable-realm.js b/test/built-ins/Proxy/defineProperty/trap-is-not-callable-realm.js
index ee22faec4..2542dcf05 100644
--- a/test/built-ins/Proxy/defineProperty/trap-is-not-callable-realm.js
+++ b/test/built-ins/Proxy/defineProperty/trap-is-not-callable-realm.js
@@ -17,6 +17,7 @@ info: |
2. Let func be GetV(O, P).
5. If IsCallable(func) is false, throw a TypeError exception.
...
+features: [cross-realm]
---*/
var OProxy = $262.createRealm().global.Proxy;
diff --git a/test/built-ins/Proxy/deleteProperty/trap-is-not-callable-realm.js b/test/built-ins/Proxy/deleteProperty/trap-is-not-callable-realm.js
index 34891d251..b1f1a1713 100644
--- a/test/built-ins/Proxy/deleteProperty/trap-is-not-callable-realm.js
+++ b/test/built-ins/Proxy/deleteProperty/trap-is-not-callable-realm.js
@@ -15,6 +15,7 @@ info: |
7.3.9 GetMethod (O, P)
5. If IsCallable(func) is false, throw a TypeError exception.
+features: [cross-realm]
---*/
var OProxy = $262.createRealm().global.Proxy;
diff --git a/test/built-ins/Proxy/get-fn-realm.js b/test/built-ins/Proxy/get-fn-realm.js
index a2fa4d5ee..08968ff92 100644
--- a/test/built-ins/Proxy/get-fn-realm.js
+++ b/test/built-ins/Proxy/get-fn-realm.js
@@ -16,6 +16,7 @@ info: |
throw a TypeError exception.
b. Let proxyTarget be the value of obj's [[ProxyTarget]] internal slot.
c. Return ? GetFunctionRealm(proxyTarget).
+features: [cross-realm]
---*/
var other = $262.createRealm().global;
diff --git a/test/built-ins/Proxy/get/trap-is-not-callable-realm.js b/test/built-ins/Proxy/get/trap-is-not-callable-realm.js
index 18a7f88e0..1d3cfade3 100644
--- a/test/built-ins/Proxy/get/trap-is-not-callable-realm.js
+++ b/test/built-ins/Proxy/get/trap-is-not-callable-realm.js
@@ -15,6 +15,7 @@ info: |
7.3.9 GetMethod (O, P)
5. If IsCallable(func) is false, throw a TypeError exception.
+features: [cross-realm]
---*/
var OProxy = $262.createRealm().global.Proxy;
diff --git a/test/built-ins/Proxy/getOwnPropertyDescriptor/result-type-is-not-object-nor-undefined-realm.js b/test/built-ins/Proxy/getOwnPropertyDescriptor/result-type-is-not-object-nor-undefined-realm.js
index 92a5003bc..d27054cf4 100644
--- a/test/built-ins/Proxy/getOwnPropertyDescriptor/result-type-is-not-object-nor-undefined-realm.js
+++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/result-type-is-not-object-nor-undefined-realm.js
@@ -10,6 +10,7 @@ info: |
[...]
9. If Type(trapResultObj) is neither Object nor Undefined, throw a TypeError
exception.
+features: [cross-realm]
---*/
var OProxy = $262.createRealm().global.Proxy;
diff --git a/test/built-ins/Proxy/getOwnPropertyDescriptor/trap-is-not-callable-realm.js b/test/built-ins/Proxy/getOwnPropertyDescriptor/trap-is-not-callable-realm.js
index e66ad8e74..f5740c8ed 100644
--- a/test/built-ins/Proxy/getOwnPropertyDescriptor/trap-is-not-callable-realm.js
+++ b/test/built-ins/Proxy/getOwnPropertyDescriptor/trap-is-not-callable-realm.js
@@ -20,6 +20,7 @@ info: |
2. Let func be GetV(O, P).
5. If IsCallable(func) is false, throw a TypeError exception.
...
+features: [cross-realm]
---*/
var OProxy = $262.createRealm().global.Proxy;
diff --git a/test/built-ins/Proxy/getPrototypeOf/trap-is-not-callable-realm.js b/test/built-ins/Proxy/getPrototypeOf/trap-is-not-callable-realm.js
index d05748afd..4a0f1a0bc 100644
--- a/test/built-ins/Proxy/getPrototypeOf/trap-is-not-callable-realm.js
+++ b/test/built-ins/Proxy/getPrototypeOf/trap-is-not-callable-realm.js
@@ -6,6 +6,7 @@ es6id: 9.5.1
description: >
Throws if trap is not callable (honoring the Realm of the current execution
context)
+features: [cross-realm]
---*/
var OProxy = $262.createRealm().global.Proxy;
diff --git a/test/built-ins/Proxy/has/trap-is-not-callable-realm.js b/test/built-ins/Proxy/has/trap-is-not-callable-realm.js
index 2f95e8eda..d36bfe4bb 100644
--- a/test/built-ins/Proxy/has/trap-is-not-callable-realm.js
+++ b/test/built-ins/Proxy/has/trap-is-not-callable-realm.js
@@ -17,6 +17,7 @@ info: |
2. Let func be GetV(O, P).
5. If IsCallable(func) is false, throw a TypeError exception.
...
+features: [cross-realm]
---*/
var OProxy = $262.createRealm().global.Proxy;
diff --git a/test/built-ins/Proxy/isExtensible/trap-is-not-callable-realm.js b/test/built-ins/Proxy/isExtensible/trap-is-not-callable-realm.js
index db771baa3..9c4e95795 100644
--- a/test/built-ins/Proxy/isExtensible/trap-is-not-callable-realm.js
+++ b/test/built-ins/Proxy/isExtensible/trap-is-not-callable-realm.js
@@ -19,6 +19,7 @@ info: |
2. Let func be GetV(O, P).
5. If IsCallable(func) is false, throw a TypeError exception.
...
+features: [cross-realm]
---*/
var OProxy = $262.createRealm().global.Proxy;
diff --git a/test/built-ins/Proxy/ownKeys/return-not-list-object-throws-realm.js b/test/built-ins/Proxy/ownKeys/return-not-list-object-throws-realm.js
index ba4595971..58d211c2f 100644
--- a/test/built-ins/Proxy/ownKeys/return-not-list-object-throws-realm.js
+++ b/test/built-ins/Proxy/ownKeys/return-not-list-object-throws-realm.js
@@ -17,7 +17,7 @@ info: |
2. If Type(obj) is not Object, throw a TypeError exception.
-features: [Symbol]
+features: [cross-realm, Symbol]
---*/
var other = $262.createRealm().global;
diff --git a/test/built-ins/Proxy/ownKeys/trap-is-not-callable-realm.js b/test/built-ins/Proxy/ownKeys/trap-is-not-callable-realm.js
index 1cc6c5d6e..030d6b5e8 100644
--- a/test/built-ins/Proxy/ownKeys/trap-is-not-callable-realm.js
+++ b/test/built-ins/Proxy/ownKeys/trap-is-not-callable-realm.js
@@ -15,6 +15,7 @@ info: |
7.3.9 GetMethod (O, P)
4. If IsCallable(func) is false, throw a TypeError exception.
+features: [cross-realm]
---*/
var OProxy = $262.createRealm().global.Proxy;
diff --git a/test/built-ins/Proxy/preventExtensions/trap-is-not-callable-realm.js b/test/built-ins/Proxy/preventExtensions/trap-is-not-callable-realm.js
index aeec54ad6..f4806c470 100644
--- a/test/built-ins/Proxy/preventExtensions/trap-is-not-callable-realm.js
+++ b/test/built-ins/Proxy/preventExtensions/trap-is-not-callable-realm.js
@@ -19,6 +19,7 @@ info: |
2. Let func be GetV(O, P).
5. If IsCallable(func) is false, throw a TypeError exception.
...
+features: [cross-realm]
---*/
var OProxy = $262.createRealm().global.Proxy;
diff --git a/test/built-ins/Proxy/set/trap-is-not-callable-realm.js b/test/built-ins/Proxy/set/trap-is-not-callable-realm.js
index 528f1171f..b6338c67f 100644
--- a/test/built-ins/Proxy/set/trap-is-not-callable-realm.js
+++ b/test/built-ins/Proxy/set/trap-is-not-callable-realm.js
@@ -15,6 +15,7 @@ info: |
7.3.9 GetMethod (O, P)
5. If IsCallable(func) is false, throw a TypeError exception.
+features: [cross-realm]
---*/
var OProxy = $262.createRealm().global.Proxy;
diff --git a/test/built-ins/Proxy/setPrototypeOf/trap-is-not-callable-realm.js b/test/built-ins/Proxy/setPrototypeOf/trap-is-not-callable-realm.js
index 50982f25b..bb0e9cf4b 100644
--- a/test/built-ins/Proxy/setPrototypeOf/trap-is-not-callable-realm.js
+++ b/test/built-ins/Proxy/setPrototypeOf/trap-is-not-callable-realm.js
@@ -20,6 +20,7 @@ info: |
2. Let func be GetV(O, P).
5. If IsCallable(func) is false, throw a TypeError exception.
...
+features: [cross-realm]
---*/
var OProxy = $262.createRealm().global.Proxy;