mirror of
https://github.com/tc39/test262.git
synced 2025-07-21 04:54:44 +02:00
Avoid relative imports outside of test directory
This commit is contained in:
parent
d4c93d2de1
commit
88ebb1e375
@ -26,7 +26,7 @@ flags: [module, raw]
|
|||||||
|
|
||||||
throw "Test262: This statement should not be evaluated.";
|
throw "Test262: This statement should not be evaluated.";
|
||||||
|
|
||||||
import "../resources/ensure-linking-error_FIXTURE.js";
|
import "./ensure-linking-error_FIXTURE.js";
|
||||||
|
|
||||||
import * as x from './import-attribute-1_FIXTURE.js'
|
import * as x from './import-attribute-1_FIXTURE.js'
|
||||||
with
|
with
|
||||||
|
@ -28,7 +28,7 @@ flags: [module]
|
|||||||
|
|
||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
import "../resources/ensure-linking-error_FIXTURE.js";
|
import "./ensure-linking-error_FIXTURE.js";
|
||||||
|
|
||||||
import x from './import-attribute-1_FIXTURE.js' with {if:''};
|
import x from './import-attribute-1_FIXTURE.js' with {if:''};
|
||||||
import './import-attribute-2_FIXTURE.js' with {if:''};
|
import './import-attribute-2_FIXTURE.js' with {if:''};
|
||||||
|
@ -28,7 +28,7 @@ flags: [module]
|
|||||||
|
|
||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
import "../resources/ensure-linking-error_FIXTURE.js";
|
import "./ensure-linking-error_FIXTURE.js";
|
||||||
|
|
||||||
import x from './import-attribute-1_FIXTURE.js' with {"test262\u0078":''};
|
import x from './import-attribute-1_FIXTURE.js' with {"test262\u0078":''};
|
||||||
import './import-attribute-2_FIXTURE.js' with {"test262\u0078":''};
|
import './import-attribute-2_FIXTURE.js' with {"test262\u0078":''};
|
||||||
|
@ -28,7 +28,7 @@ flags: [module]
|
|||||||
|
|
||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
import "../resources/ensure-linking-error_FIXTURE.js";
|
import "./ensure-linking-error_FIXTURE.js";
|
||||||
|
|
||||||
import x from './import-attribute-1_FIXTURE.js' with {'test262\u0078':''};
|
import x from './import-attribute-1_FIXTURE.js' with {'test262\u0078':''};
|
||||||
import './import-attribute-2_FIXTURE.js' with {'test262\u0078':''};
|
import './import-attribute-2_FIXTURE.js' with {'test262\u0078':''};
|
||||||
|
@ -28,7 +28,7 @@ flags: [module]
|
|||||||
|
|
||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
import "../resources/ensure-linking-error_FIXTURE.js";
|
import "./ensure-linking-error_FIXTURE.js";
|
||||||
|
|
||||||
import x from './import-attribute-1_FIXTURE.js' with {test262_1:'',test262_2:'',test262_3:'',test262_4:''};
|
import x from './import-attribute-1_FIXTURE.js' with {test262_1:'',test262_2:'',test262_3:'',test262_4:''};
|
||||||
import './import-attribute-2_FIXTURE.js' with {test262_1:'',test262_2:'',test262_3:'',test262_4:''};
|
import './import-attribute-2_FIXTURE.js' with {test262_1:'',test262_2:'',test262_3:'',test262_4:''};
|
||||||
|
@ -31,7 +31,7 @@ flags: [module]
|
|||||||
|
|
||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
import "../resources/ensure-linking-error_FIXTURE.js";
|
import "./ensure-linking-error_FIXTURE.js";
|
||||||
|
|
||||||
import x from './import-attribute-1_FIXTURE.js' with
|
import x from './import-attribute-1_FIXTURE.js' with
|
||||||
|
|
||||||
|
@ -28,7 +28,7 @@ flags: [module]
|
|||||||
|
|
||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
import "../resources/ensure-linking-error_FIXTURE.js";
|
import "./ensure-linking-error_FIXTURE.js";
|
||||||
|
|
||||||
import x from './import-attribute-1_FIXTURE.js' with {test262:'',};
|
import x from './import-attribute-1_FIXTURE.js' with {test262:'',};
|
||||||
import './import-attribute-2_FIXTURE.js' with {test262:'',};
|
import './import-attribute-2_FIXTURE.js' with {test262:'',};
|
||||||
|
@ -28,7 +28,7 @@ flags: [module]
|
|||||||
|
|
||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
import "../resources/ensure-linking-error_FIXTURE.js";
|
import "./ensure-linking-error_FIXTURE.js";
|
||||||
|
|
||||||
import x from './import-attribute-1_FIXTURE.js' with {test262:"\u0078"};
|
import x from './import-attribute-1_FIXTURE.js' with {test262:"\u0078"};
|
||||||
import './import-attribute-2_FIXTURE.js' with {test262:"\u0078"};
|
import './import-attribute-2_FIXTURE.js' with {test262:"\u0078"};
|
||||||
|
@ -28,7 +28,7 @@ flags: [module]
|
|||||||
|
|
||||||
$DONOTEVALUATE();
|
$DONOTEVALUATE();
|
||||||
|
|
||||||
import "../resources/ensure-linking-error_FIXTURE.js";
|
import "./ensure-linking-error_FIXTURE.js";
|
||||||
|
|
||||||
import x from './import-attribute-1_FIXTURE.js' with {test262:'\u0078'};
|
import x from './import-attribute-1_FIXTURE.js' with {test262:'\u0078'};
|
||||||
import './import-attribute-2_FIXTURE.js' with {test262:'\u0078'};
|
import './import-attribute-2_FIXTURE.js' with {test262:'\u0078'};
|
||||||
|
@ -0,0 +1,9 @@
|
|||||||
|
// Copyright (C) 2022 Igalia, S.L. All rights reserved.
|
||||||
|
// This code is governed by the BSD license found in the LICENSE file.
|
||||||
|
|
||||||
|
// When imported, this file will ensure that a linking error happens by
|
||||||
|
// importing a non-existent binding.
|
||||||
|
// It can be used to assert that there is a linking error, which means
|
||||||
|
// that there are no parsing errors.
|
||||||
|
|
||||||
|
import { nonExistent } from "./ensure-linking-error_FIXTURE.js";
|
@ -12,7 +12,7 @@
|
|||||||
// ImportDeclaration:
|
// ImportDeclaration:
|
||||||
// import source ImportedBinding FromClause ;
|
// import source ImportedBinding FromClause ;
|
||||||
|
|
||||||
import "../resources/ensure-linking-error_FIXTURE.js";
|
import "./ensure-linking-error_FIXTURE.js";
|
||||||
|
|
||||||
import source source from '<do not resolve>';
|
import source source from '<do not resolve>';
|
||||||
import source from from '<do not resolve>';
|
import source from from '<do not resolve>';
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
// ImportDeclaration:
|
// ImportDeclaration:
|
||||||
// import source ImportedBinding FromClause ;
|
// import source ImportedBinding FromClause ;
|
||||||
|
|
||||||
import "../resources/ensure-linking-error_FIXTURE.js";
|
import "./ensure-linking-error_FIXTURE.js";
|
||||||
|
|
||||||
import source from '<do not resolve>';
|
import source from '<do not resolve>';
|
||||||
import from from '<do not resolve>';
|
import from from '<do not resolve>';
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
// 16.2.1.7.2 GetModuleSource ( )
|
// 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.
|
// Source Text Module Record provides a GetModuleSource implementation that always returns an abrupt completion indicating that a source phase import is not available.
|
||||||
|
|
||||||
import "../resources/ensure-linking-error_FIXTURE.js";
|
import "./ensure-linking-error_FIXTURE.js";
|
||||||
|
|
||||||
import
|
import
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user