fix(test-test262): revert undesirable test harness changes
Refs
MODIFY
test/test-test262.js
test/test-test262.js
@@ -97,6 +97,19 @@ function hasExcludedInfo(testInfo) {
// some tests fail because they rely on a side effect which is failing
// resolving an issue might uncover another issue
+ // 'Statement cannot contain an `import` declaration', // https://github.com/Agoric/transform-module/issues/5
+ // 'Expression cannot contain an `import` declaration', // https://github.com/Agoric/transform-module/issues/5
+ // 'Statement cannot contain an `export` declaration', // https://github.com/Agoric/transform-module/issues/5
+ // 'Expression cannot contain an `export` declaration', // https://github.com/Agoric/transform-module/issues/5
+
+ // 'Default AssignmentExpression (which can be recognized as an "anonymous"', // https://github.com/Agoric/make-importer/issues/10
+
+ // 'An exported default "anonymous"', // https://github.com/Agoric/make-importer/issues/12
+ // 'Default "anonymous', // https://github.com/Agoric/make-importer/issues/12
+ // 'An exported default "named"', // https://github.com/Agoric/make-importer/issues/12
+
+ // 'The [[OwnPropertyKeys]] internal method reflects the sorted order', // https://github.com/Agoric/make-importer/issues/24
+
'Behavior of the [[HasProperty]] internal method', // https://github.com/Agoric/make-importer/issues/?
'Behavior of the [[GetOwnProperty]] internal method', // https://github.com/Agoric/make-importer/issues/?
'Behavior of the [[Get]] internal method', // https://github.com/Agoric/make-importer/issues/?
@@ -109,13 +122,22 @@ function hasExcludedInfo(testInfo) {
'Modules can be visited more than once', // https://github.com/Agoric/make-importer/issues/27
+ // 'Ambiguous exports are not reflected', // https://github.com/Agoric/make-importer/issues/28
+
'`Symbol.toStringTag` property descriptor', // https://github.com/Agoric/make-importer/issues/29
- // 'Module is evaluated exactly once', // https://github.com/Agoric/make-importer/issues/36
+ // 'Hashbang comments', // https://github.com/Agoric/make-importer/issues/34
+
+ // 'The class-name is present', // https://github.com/Agoric/make-importer/issues/35
+
+ 'Module is evaluated exactly once', // https://github.com/Agoric/make-importer/issues/36
// 'Requested modules are evaluated exactly once', // https://github.com/Agoric/make-importer/issues/36
'The [[SetPrototypeOf]] internal method returns `false`', // https://github.com/Agoric/make-importer/issues/39
+ // 'References observe the initialization of lexical bindings', // https://github.com/Agoric/make-importer/issues/40
+ // 'References observe the mutation of initialized bindings', // https://github.com/Agoric/make-importer/issues/40
+
// 'Requested modules are evaluated prior to the requesting module in source code order', // https://github.com/Agoric/make-importer/issues/43
'Modifications to default binding that occur after dependency has been evaluated', // https://github.com/Agoric/make-importer/issues/12
@@ -170,10 +192,6 @@ function injectTest262Harness(globalObject, t) {
throw 'Test262: This statement should not be evaluated.';
}
- // This cleans up (some of) the global state between tests.
- // TODO: Have proper isolation.
- delete globalObject.test262;
-
Object.assign(globalObject, {
Test262Error,
$ERROR,

fix(test-test262): revert undesirable test harness changes

Refs #46