Skip to content

Commit

Permalink
[source-phase-imports] update missing source error type
Browse files Browse the repository at this point in the history
  • Loading branch information
legendecas authored and Ms2ger committed Oct 25, 2024
1 parent 0add42b commit 4bbd433
Show file tree
Hide file tree
Showing 35 changed files with 73 additions and 73 deletions.
4 changes: 2 additions & 2 deletions src/dynamic-import/import-source-source-text-module.case
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ esid: sec-moduleevaluation
info: |
16.2.1.7.2 GetModuleSource ( )
Source Text Module Record provides a GetModuleSource implementation that always returns an abrupt completion indicating that a source phase import is not available.
1. Throw a ReferenceError exception.
1. Throw a SyntaxError exception.

Import Calls

Expand Down Expand Up @@ -35,4 +35,4 @@ features: [source-phase-imports]
//- import
import.source('./empty_FIXTURE.js')
//- body
assert.sameValue(error.name, 'ReferenceError');
assert.sameValue(error.name, 'SyntaxError');
4 changes: 2 additions & 2 deletions src/dynamic-import/import-source-specifier-tostring.case
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ info: |

16.2.1.7.2 GetModuleSource ( )
Source Text Module Record provides a GetModuleSource implementation that always returns an abrupt completion indicating that a source phase import is not available.
1. Throw a ReferenceError exception.
1. Throw a SyntaxError exception.

template: catch
features: [source-phase-imports]
Expand All @@ -47,4 +47,4 @@ const obj = {
//- import
import.source(obj)
//- body
assert.sameValue(error.name, 'ReferenceError');
assert.sameValue(error.name, 'SyntaxError');
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ info: |
16.2.1.7.2 GetModuleSource ( )
Source Text Module Record provides a GetModuleSource implementation that always returns an abrupt completion indicating that a source phase import is not available.
1. Throw a ReferenceError exception.
1. Throw a SyntaxError exception.
Import Calls
Expand All @@ -49,7 +49,7 @@ info: |
let f = () => {
import.source('./empty_FIXTURE.js').catch(error => {

assert.sameValue(error.name, 'ReferenceError');
assert.sameValue(error.name, 'SyntaxError');

}).then($DONE, $DONE);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ info: |
16.2.1.7.2 GetModuleSource ( )
Source Text Module Record provides a GetModuleSource implementation that always returns an abrupt completion indicating that a source phase import is not available.
1. Throw a ReferenceError exception.
1. Throw a SyntaxError exception.
---*/
// The following case is equivalent of the call of:
Expand All @@ -58,7 +58,7 @@ const obj = {
let f = () => {
import.source(obj).catch(error => {

assert.sameValue(error.name, 'ReferenceError');
assert.sameValue(error.name, 'SyntaxError');

}).then($DONE, $DONE);
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ info: |
16.2.1.7.2 GetModuleSource ( )
Source Text Module Record provides a GetModuleSource implementation that always returns an abrupt completion indicating that a source phase import is not available.
1. Throw a ReferenceError exception.
1. Throw a SyntaxError exception.
Import Calls
Expand Down Expand Up @@ -52,6 +52,6 @@ const f = async () => {

f().catch(error => {

assert.sameValue(error.name, 'ReferenceError');
assert.sameValue(error.name, 'SyntaxError');

}).then($DONE, $DONE);
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ info: |
16.2.1.7.2 GetModuleSource ( )
Source Text Module Record provides a GetModuleSource implementation that always returns an abrupt completion indicating that a source phase import is not available.
1. Throw a ReferenceError exception.
1. Throw a SyntaxError exception.
---*/
// The following case is equivalent of the call of:
Expand All @@ -61,6 +61,6 @@ const f = async () => {

f().catch(error => {

assert.sameValue(error.name, 'ReferenceError');
assert.sameValue(error.name, 'SyntaxError');

}).then($DONE, $DONE);
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ info: |
16.2.1.7.2 GetModuleSource ( )
Source Text Module Record provides a GetModuleSource implementation that always returns an abrupt completion indicating that a source phase import is not available.
1. Throw a ReferenceError exception.
1. Throw a SyntaxError exception.
Import Calls
Expand All @@ -50,6 +50,6 @@ const f = async () => await import.source('./empty_FIXTURE.js');

f().catch(error => {

assert.sameValue(error.name, 'ReferenceError');
assert.sameValue(error.name, 'SyntaxError');

}).then($DONE, $DONE);
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ info: |
16.2.1.7.2 GetModuleSource ( )
Source Text Module Record provides a GetModuleSource implementation that always returns an abrupt completion indicating that a source phase import is not available.
1. Throw a ReferenceError exception.
1. Throw a SyntaxError exception.
---*/
// The following case is equivalent of the call of:
Expand All @@ -59,6 +59,6 @@ const f = async () => await import.source(obj);

f().catch(error => {

assert.sameValue(error.name, 'ReferenceError');
assert.sameValue(error.name, 'SyntaxError');

}).then($DONE, $DONE);
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ info: |
16.2.1.7.2 GetModuleSource ( )
Source Text Module Record provides a GetModuleSource implementation that always returns an abrupt completion indicating that a source phase import is not available.
1. Throw a ReferenceError exception.
1. Throw a SyntaxError exception.
Import Calls
Expand All @@ -49,7 +49,7 @@ info: |
async function f() {
await import.source('./empty_FIXTURE.js').catch(error => {

assert.sameValue(error.name, 'ReferenceError');
assert.sameValue(error.name, 'SyntaxError');

}).then($DONE, $DONE);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ info: |
16.2.1.7.2 GetModuleSource ( )
Source Text Module Record provides a GetModuleSource implementation that always returns an abrupt completion indicating that a source phase import is not available.
1. Throw a ReferenceError exception.
1. Throw a SyntaxError exception.
---*/
// The following case is equivalent of the call of:
Expand All @@ -58,7 +58,7 @@ const obj = {
async function f() {
await import.source(obj).catch(error => {

assert.sameValue(error.name, 'ReferenceError');
assert.sameValue(error.name, 'SyntaxError');

}).then($DONE, $DONE);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ info: |
16.2.1.7.2 GetModuleSource ( )
Source Text Module Record provides a GetModuleSource implementation that always returns an abrupt completion indicating that a source phase import is not available.
1. Throw a ReferenceError exception.
1. Throw a SyntaxError exception.
Import Calls
Expand All @@ -49,7 +49,7 @@ info: |
async function f() {
import.source('./empty_FIXTURE.js').catch(error => {

assert.sameValue(error.name, 'ReferenceError');
assert.sameValue(error.name, 'SyntaxError');

}).then($DONE, $DONE);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ info: |
16.2.1.7.2 GetModuleSource ( )
Source Text Module Record provides a GetModuleSource implementation that always returns an abrupt completion indicating that a source phase import is not available.
1. Throw a ReferenceError exception.
1. Throw a SyntaxError exception.
---*/
// The following case is equivalent of the call of:
Expand All @@ -58,7 +58,7 @@ const obj = {
async function f() {
import.source(obj).catch(error => {

assert.sameValue(error.name, 'ReferenceError');
assert.sameValue(error.name, 'SyntaxError');

}).then($DONE, $DONE);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ info: |
16.2.1.7.2 GetModuleSource ( )
Source Text Module Record provides a GetModuleSource implementation that always returns an abrupt completion indicating that a source phase import is not available.
1. Throw a ReferenceError exception.
1. Throw a SyntaxError exception.
Import Calls
Expand All @@ -49,7 +49,7 @@ info: |
async function f() {
return await import.source('./empty_FIXTURE.js').catch(error => {

assert.sameValue(error.name, 'ReferenceError');
assert.sameValue(error.name, 'SyntaxError');

}).then($DONE, $DONE);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ info: |
16.2.1.7.2 GetModuleSource ( )
Source Text Module Record provides a GetModuleSource implementation that always returns an abrupt completion indicating that a source phase import is not available.
1. Throw a ReferenceError exception.
1. Throw a SyntaxError exception.
---*/
// The following case is equivalent of the call of:
Expand All @@ -58,7 +58,7 @@ const obj = {
async function f() {
return await import.source(obj).catch(error => {

assert.sameValue(error.name, 'ReferenceError');
assert.sameValue(error.name, 'SyntaxError');

}).then($DONE, $DONE);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ info: |
16.2.1.7.2 GetModuleSource ( )
Source Text Module Record provides a GetModuleSource implementation that always returns an abrupt completion indicating that a source phase import is not available.
1. Throw a ReferenceError exception.
1. Throw a SyntaxError exception.
Import Calls
Expand Down Expand Up @@ -52,6 +52,6 @@ async function * f() {

f().next().catch(error => {

assert.sameValue(error.name, 'ReferenceError');
assert.sameValue(error.name, 'SyntaxError');

}).then($DONE, $DONE);
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ info: |
16.2.1.7.2 GetModuleSource ( )
Source Text Module Record provides a GetModuleSource implementation that always returns an abrupt completion indicating that a source phase import is not available.
1. Throw a ReferenceError exception.
1. Throw a SyntaxError exception.
---*/
// The following case is equivalent of the call of:
Expand All @@ -61,6 +61,6 @@ async function * f() {

f().next().catch(error => {

assert.sameValue(error.name, 'ReferenceError');
assert.sameValue(error.name, 'SyntaxError');

}).then($DONE, $DONE);
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ info: |
16.2.1.7.2 GetModuleSource ( )
Source Text Module Record provides a GetModuleSource implementation that always returns an abrupt completion indicating that a source phase import is not available.
1. Throw a ReferenceError exception.
1. Throw a SyntaxError exception.
Import Calls
Expand Down Expand Up @@ -52,6 +52,6 @@ async function * f() {

f().next().catch(error => {

assert.sameValue(error.name, 'ReferenceError');
assert.sameValue(error.name, 'SyntaxError');

}).then($DONE, $DONE);
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ info: |
16.2.1.7.2 GetModuleSource ( )
Source Text Module Record provides a GetModuleSource implementation that always returns an abrupt completion indicating that a source phase import is not available.
1. Throw a ReferenceError exception.
1. Throw a SyntaxError exception.
---*/
// The following case is equivalent of the call of:
Expand All @@ -61,6 +61,6 @@ async function * f() {

f().next().catch(error => {

assert.sameValue(error.name, 'ReferenceError');
assert.sameValue(error.name, 'SyntaxError');

}).then($DONE, $DONE);
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ info: |
16.2.1.7.2 GetModuleSource ( )
Source Text Module Record provides a GetModuleSource implementation that always returns an abrupt completion indicating that a source phase import is not available.
1. Throw a ReferenceError exception.
1. Throw a SyntaxError exception.
Import Calls
Expand All @@ -49,7 +49,7 @@ info: |
{
import.source('./empty_FIXTURE.js').catch(error => {

assert.sameValue(error.name, 'ReferenceError');
assert.sameValue(error.name, 'SyntaxError');

}).then($DONE, $DONE);
};
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ info: |
16.2.1.7.2 GetModuleSource ( )
Source Text Module Record provides a GetModuleSource implementation that always returns an abrupt completion indicating that a source phase import is not available.
1. Throw a ReferenceError exception.
1. Throw a SyntaxError exception.
---*/
// The following case is equivalent of the call of:
Expand All @@ -58,7 +58,7 @@ const obj = {
{
import.source(obj).catch(error => {

assert.sameValue(error.name, 'ReferenceError');
assert.sameValue(error.name, 'SyntaxError');

}).then($DONE, $DONE);
};
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ info: |
16.2.1.7.2 GetModuleSource ( )
Source Text Module Record provides a GetModuleSource implementation that always returns an abrupt completion indicating that a source phase import is not available.
1. Throw a ReferenceError exception.
1. Throw a SyntaxError exception.
Import Calls
Expand All @@ -49,7 +49,7 @@ info: |
label: {
import.source('./empty_FIXTURE.js').catch(error => {

assert.sameValue(error.name, 'ReferenceError');
assert.sameValue(error.name, 'SyntaxError');

}).then($DONE, $DONE);
};
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ info: |
16.2.1.7.2 GetModuleSource ( )
Source Text Module Record provides a GetModuleSource implementation that always returns an abrupt completion indicating that a source phase import is not available.
1. Throw a ReferenceError exception.
1. Throw a SyntaxError exception.
---*/
// The following case is equivalent of the call of:
Expand All @@ -58,7 +58,7 @@ const obj = {
label: {
import.source(obj).catch(error => {

assert.sameValue(error.name, 'ReferenceError');
assert.sameValue(error.name, 'SyntaxError');

}).then($DONE, $DONE);
};
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ info: |
16.2.1.7.2 GetModuleSource ( )
Source Text Module Record provides a GetModuleSource implementation that always returns an abrupt completion indicating that a source phase import is not available.
1. Throw a ReferenceError exception.
1. Throw a SyntaxError exception.
Import Calls
Expand All @@ -49,7 +49,7 @@ info: |
do {
import.source('./empty_FIXTURE.js').catch(error => {

assert.sameValue(error.name, 'ReferenceError');
assert.sameValue(error.name, 'SyntaxError');

}).then($DONE, $DONE);
} while (false);
Loading

0 comments on commit 4bbd433

Please sign in to comment.