Skip to content

Commit 931d02f

Browse files
nicolo-ribaudorichardlau
authored andcommitted
test, v8: fix wrong import attributes test
PR-URL: #52184 Refs: #51136 Refs: #52165 (comment) Reviewed-By: Richard Lau <[email protected]> Reviewed-By: Marco Ippolito <[email protected]> Reviewed-By: Geoffrey Booth <[email protected]>
1 parent 812b126 commit 931d02f

6 files changed

+10
-4
lines changed

‎deps/v8/test/mjsunit/harmony/modules-import-assertions-3.mjs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44

55
// Flags: --harmony-import-assertions
66

7-
import{life}from'modules-skip-imports-json-1.mjs';
7+
import{life}from'modules-skip-imports-json-assert-1.mjs';
88

99
assertEquals(42,life());

‎deps/v8/test/mjsunit/harmony/modules-import-assertions-dynamic-5.mjs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// Flags: --allow-natives-syntax --harmony-import-assertions
66

77
varlife;
8-
import('modules-skip-imports-json-1.mjs',).then(namespace=>life=namespace.life());
8+
import('modules-skip-imports-json-assert-1.mjs',).then(namespace=>life=namespace.life());
99

1010
%PerformMicrotaskCheckpoint();
1111

‎deps/v8/test/mjsunit/harmony/modules-import-attributes-3.mjs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,6 @@
44

55
// Flags: --harmony-import-attributes
66

7-
import{life}from'modules-skip-imports-json-1.mjs';
7+
import{life}from'modules-skip-imports-json-with-1.mjs';
88

99
assertEquals(42,life());

‎deps/v8/test/mjsunit/harmony/modules-import-attributes-dynamic-5.mjs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
// Flags: --allow-natives-syntax --harmony-import-attributes
66

77
varlife;
8-
import('modules-skip-imports-json-1.mjs',).then(namespace=>life=namespace.life());
8+
import('modules-skip-imports-json-with-1.mjs',).then(namespace=>life=namespace.life());
99

1010
%PerformMicrotaskCheckpoint();
1111

deps/v8/test/mjsunit/harmony/modules-skip-imports-json-1.mjs renamed to deps/v8/test/mjsunit/harmony/modules-skip-imports-json-assert-1.mjs

File renamed without changes.
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// Copyright 2021 the V8 project authors. All rights reserved.
2+
// Use of this source code is governed by a BSD-style license that can be
3+
// found in the LICENSE file.
4+
5+
importjsonfrom"modules-skip-1.json"with{type: "json"};
6+
exportfunctionlife(){returnjson.life;}

0 commit comments

Comments
(0)