Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[source-phase-imports] update missing source error type #4277

Merged
merged 1 commit into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading