mirror of https://github.com/tc39/test262.git
Fix decorator tests
This commit is contained in:
parent
babd46c40a
commit
ee521159d5
|
@ -23,6 +23,6 @@ let c = new C();
|
|||
assert.sameValue(Object.hasOwnProperty.call(C.prototype, 'accessor'), false);
|
||||
assert.sameValue(Object.hasOwnProperty.call(C.prototype, '$'), false);
|
||||
assert.sameValue(Object.hasOwnProperty.call(C, 'accessor'), true);
|
||||
assert.sameValue(Object.hasOwnProperty.call(C, '$'), true);
|
||||
assert.sameValue(Object.hasOwnProperty.call(C, '$'), false);
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, 'accessor'), true);
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, '$'), true);
|
||||
|
|
|
@ -25,6 +25,7 @@ template: syntax/valid
|
|||
function decorator() {
|
||||
return () => {};
|
||||
}
|
||||
var $ = decorator;
|
||||
var _ = decorator;
|
||||
var \u{6F} = decorator;
|
||||
var \u2118 = decorator;
|
||||
|
|
|
@ -15,14 +15,14 @@ template: syntax/valid
|
|||
|
||||
//- setup
|
||||
let ns = {
|
||||
$() {}
|
||||
_() {}
|
||||
\u{6F}() {}
|
||||
\u2118() {}
|
||||
ZW_\u200C_NJ() {}
|
||||
ZW_\u200D_J() {}
|
||||
yield() {}
|
||||
await() {}
|
||||
$() {},
|
||||
_() {},
|
||||
\u{6F}() {},
|
||||
\u2118() {},
|
||||
ZW_\u200C_NJ() {},
|
||||
ZW_\u200D_J() {},
|
||||
yield() {},
|
||||
await() {},
|
||||
}
|
||||
|
||||
//- decorators
|
||||
|
|
|
@ -38,6 +38,7 @@ info: |
|
|||
function decorator() {
|
||||
return () => {};
|
||||
}
|
||||
var $ = decorator;
|
||||
var _ = decorator;
|
||||
var \u{6F} = decorator;
|
||||
var \u2118 = decorator;
|
||||
|
|
|
@ -28,14 +28,14 @@ info: |
|
|||
|
||||
---*/
|
||||
let ns = {
|
||||
$() {}
|
||||
_() {}
|
||||
\u{6F}() {}
|
||||
\u2118() {}
|
||||
ZW_\u200C_NJ() {}
|
||||
ZW_\u200D_J() {}
|
||||
yield() {}
|
||||
await() {}
|
||||
$() {},
|
||||
_() {},
|
||||
\u{6F}() {},
|
||||
\u2118() {},
|
||||
ZW_\u200C_NJ() {},
|
||||
ZW_\u200D_J() {},
|
||||
yield() {},
|
||||
await() {},
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -26,6 +26,6 @@ let c = new C();
|
|||
assert.sameValue(Object.hasOwnProperty.call(C.prototype, 'accessor'), false);
|
||||
assert.sameValue(Object.hasOwnProperty.call(C.prototype, '$'), false);
|
||||
assert.sameValue(Object.hasOwnProperty.call(C, 'accessor'), true);
|
||||
assert.sameValue(Object.hasOwnProperty.call(C, '$'), true);
|
||||
assert.sameValue(Object.hasOwnProperty.call(C, '$'), false);
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, 'accessor'), true);
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, '$'), true);
|
||||
|
|
|
@ -39,6 +39,7 @@ info: |
|
|||
function decorator() {
|
||||
return () => {};
|
||||
}
|
||||
var $ = decorator;
|
||||
var _ = decorator;
|
||||
var \u{6F} = decorator;
|
||||
var \u2118 = decorator;
|
||||
|
|
|
@ -29,14 +29,14 @@ info: |
|
|||
|
||||
---*/
|
||||
let ns = {
|
||||
$() {}
|
||||
_() {}
|
||||
\u{6F}() {}
|
||||
\u2118() {}
|
||||
ZW_\u200C_NJ() {}
|
||||
ZW_\u200D_J() {}
|
||||
yield() {}
|
||||
await() {}
|
||||
$() {},
|
||||
_() {},
|
||||
\u{6F}() {},
|
||||
\u2118() {},
|
||||
ZW_\u200C_NJ() {},
|
||||
ZW_\u200D_J() {},
|
||||
yield() {},
|
||||
await() {},
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -26,6 +26,6 @@ let c = new C();
|
|||
assert.sameValue(Object.hasOwnProperty.call(C.prototype, 'accessor'), false);
|
||||
assert.sameValue(Object.hasOwnProperty.call(C.prototype, '$'), false);
|
||||
assert.sameValue(Object.hasOwnProperty.call(C, 'accessor'), true);
|
||||
assert.sameValue(Object.hasOwnProperty.call(C, '$'), true);
|
||||
assert.sameValue(Object.hasOwnProperty.call(C, '$'), false);
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, 'accessor'), true);
|
||||
assert.sameValue(Object.hasOwnProperty.call(c, '$'), true);
|
||||
|
|
Loading…
Reference in New Issue