Make Proxy/ownKeys tests ES5-parsable. (#1644)

All other Proxy tests use the syntax `attr: function() {...}` for
defining traps, ownKeys was unique in using the shorthand syntax. Change
to longhand syntax for back-compat for partial implementations.
This commit is contained in:
Thomas Wood 2018-07-20 23:40:10 +01:00 committed by Leo Balter
parent 4f3cbc756d
commit d817076ddb
8 changed files with 8 additions and 8 deletions

View File

@ -12,7 +12,7 @@ info: |
---*/ ---*/
var p = new Proxy({}, { var p = new Proxy({}, {
ownKeys() { ownKeys: function() {
return ["a", "a"]; return ["a", "a"];
} }
}); });

View File

@ -14,7 +14,7 @@ features: [Symbol]
var s = Symbol(); var s = Symbol();
var p = new Proxy({}, { var p = new Proxy({}, {
ownKeys() { ownKeys: function() {
return [s, s]; return [s, s];
} }
}); });

View File

@ -24,7 +24,7 @@ info: |
---*/ ---*/
var p = new Proxy({}, { var p = new Proxy({}, {
ownKeys() { ownKeys: function() {
return [ return [
[] []
]; ];

View File

@ -24,7 +24,7 @@ info: |
---*/ ---*/
var p = new Proxy({}, { var p = new Proxy({}, {
ownKeys() { ownKeys: function() {
return [true]; return [true];
} }
}); });

View File

@ -24,7 +24,7 @@ info: |
---*/ ---*/
var p = new Proxy({}, { var p = new Proxy({}, {
ownKeys() { ownKeys: function() {
return [null]; return [null];
} }
}); });

View File

@ -24,7 +24,7 @@ info: |
---*/ ---*/
var p = new Proxy({}, { var p = new Proxy({}, {
ownKeys() { ownKeys: function() {
return [1]; return [1];
} }
}); });

View File

@ -24,7 +24,7 @@ info: |
---*/ ---*/
var p = new Proxy({}, { var p = new Proxy({}, {
ownKeys() { ownKeys: function() {
return [{}]; return [{}];
} }
}); });

View File

@ -24,7 +24,7 @@ info: |
---*/ ---*/
var p = new Proxy({}, { var p = new Proxy({}, {
ownKeys() { ownKeys: function() {
return [undefined]; return [undefined];
} }
}); });