[javascriptcore-test262-automation] Changes from https://github.com/webkit/webkit.git at sha 8a73712b6a on Mon Sep 10 2018 18:21:05 GMT+0000 (Coordinated Universal Time)

This commit is contained in:
test262-automation 2018-09-10 18:23:31 +00:00
parent 6aa46d0ddb
commit 1f7948aa7e
6 changed files with 46 additions and 38 deletions

View File

@ -1643,6 +1643,8 @@
"/stress/yield-named-variable.js": "DELETED_IN_TARGET",
"/stress/yield-out-of-generator.js": "DELETED_IN_TARGET",
"/stress/yield-reserved-word.js": "DELETED_IN_TARGET",
"/stress/yield-star-throw-continue.js": "DELETED_IN_TARGET"
"/stress/yield-star-throw-continue.js": "DELETED_IN_TARGET",
"/stress/regress-189186.js": "DELETED_IN_TARGET",
"/stress/regress-189292.js": "DELETED_IN_TARGET"
}
}

View File

@ -1,7 +1,5 @@
import { shouldBe, shouldThrow } from "./resources/assert.js"
shouldThrow(() => {
loadModule('./different-view/main.js');
}, `SyntaxError: Importing binding name 'A' cannot be resolved due to ambiguous multiple bindings.`);
import { shouldBe } from "./resources/assert.js"
import('./different-view/main.js').then($vm.abort, function (error) {
shouldBe(String(error), `SyntaxError: Importing binding name 'A' cannot be resolved due to ambiguous multiple bindings.`);
}).catch($vm.abort);

View File

@ -6,7 +6,8 @@
// | |
// v @
// (B)
import { shouldThrow } from "./resources/assert.js"
shouldThrow(() => {
loadModule("./fallback-ambiguous/main.js");
}, `SyntaxError: Indirectly exported binding name 'A' cannot be resolved due to ambiguous multiple bindings.`);
import { shouldBe } from "./resources/assert.js"
import('./fallback-ambiguous/main.js').then($vm.abort, function (error) {
shouldBe(String(error), `SyntaxError: Indirectly exported binding name 'A' cannot be resolved due to ambiguous multiple bindings.`);
}).catch($vm.abort);

View File

@ -1,13 +1,16 @@
import { shouldBe, shouldThrow } from "./resources/assert.js"
import { shouldBe } from "./resources/assert.js"
shouldThrow(() => {
loadModule('./import-error/import-not-found.js');
}, `SyntaxError: Importing binding name 'B' is not found.`);
shouldThrow(() => {
loadModule('./import-error/import-ambiguous.js');
}, `SyntaxError: Importing binding name 'B' cannot be resolved due to ambiguous multiple bindings.`);
shouldThrow(() => {
loadModule('./import-error/import-default-from-star.js');
}, `SyntaxError: Importing binding name 'default' cannot be resolved by star export entries.`);
Promise.all([
import('./import-error/import-not-found.js')
.then($vm.abort, function (error) {
shouldBe(String(error), `SyntaxError: Importing binding name 'B' is not found.`);
}).catch($vm.abort),
import('./import-error/import-ambiguous.js')
.then($vm.abort, function (error) {
shouldBe(String(error), `SyntaxError: Importing binding name 'B' cannot be resolved due to ambiguous multiple bindings.`);
}).catch($vm.abort),
import('./import-error/import-default-from-star.js')
.then($vm.abort, function (error) {
shouldBe(String(error), `SyntaxError: Importing binding name 'default' cannot be resolved by star export entries.`);
}).catch($vm.abort),
]).catch($vm.abort);

View File

@ -1,13 +1,17 @@
import { shouldBe, shouldThrow } from "./resources/assert.js"
import { shouldBe } from "./resources/assert.js"
shouldThrow(() => {
loadModule('./indirect-export-error/indirect-export-not-found.js');
}, `SyntaxError: Indirectly exported binding name 'B' is not found.`);
shouldThrow(() => {
loadModule('./indirect-export-error/indirect-export-ambiguous.js');
}, `SyntaxError: Indirectly exported binding name 'B' cannot be resolved due to ambiguous multiple bindings.`);
shouldThrow(() => {
loadModule('./indirect-export-error/indirect-export-default.js');
}, `SyntaxError: Indirectly exported binding name 'default' cannot be resolved by star export entries.`);
Promise.all([
import('./indirect-export-error/indirect-export-not-found.js')
.then($vm.abort, function (error) {
shouldBe(String(error), `SyntaxError: Indirectly exported binding name 'B' is not found.`);
}).catch($vm.abort),
import('./indirect-export-error/indirect-export-ambiguous.js')
.then($vm.abort, function (error) {
shouldBe(String(error), `SyntaxError: Indirectly exported binding name 'B' cannot be resolved due to ambiguous multiple bindings.`);
}).catch($vm.abort),
import('./indirect-export-error/indirect-export-default.js')
.then($vm.abort, function (error) {
shouldBe(String(error), `SyntaxError: Indirectly exported binding name 'default' cannot be resolved by star export entries.`);
}).catch($vm.abort),
]).catch($vm.abort);

View File

@ -1,5 +1,5 @@
import { shouldThrow } from "./resources/assert.js"
import { shouldBe } from "./resources/assert.js"
shouldThrow(() => {
loadModule('./namespace-error/namespace-local-error-should-hide-global-ambiguity.js');
}, `SyntaxError: Indirectly exported binding name 'default' cannot be resolved by star export entries.`);
import('./namespace-error/namespace-local-error-should-hide-global-ambiguity.js').then($vm.abort, function (error) {
shouldBe(String(error), `SyntaxError: Indirectly exported binding name 'default' cannot be resolved by star export entries.`);
}).catch($vm.abort);