Fix decorator tests

This commit is contained in:
legendecas 2022-06-23 22:37:08 +08:00 committed by Rick Waldron
parent babd46c40a
commit ee521159d5
9 changed files with 30 additions and 27 deletions

View File

@ -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);

View File

@ -25,6 +25,7 @@ template: syntax/valid
function decorator() {
return () => {};
}
var $ = decorator;
var _ = decorator;
var \u{6F} = decorator;
var \u2118 = decorator;

View File

@ -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

View File

@ -38,6 +38,7 @@ info: |
function decorator() {
return () => {};
}
var $ = decorator;
var _ = decorator;
var \u{6F} = decorator;
var \u2118 = decorator;

View File

@ -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() {},
}

View File

@ -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);

View File

@ -39,6 +39,7 @@ info: |
function decorator() {
return () => {};
}
var $ = decorator;
var _ = decorator;
var \u{6F} = decorator;
var \u2118 = decorator;

View File

@ -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() {},
}

View File

@ -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);