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 <rlau@redhat.com> Reviewed-By: Marco Ippolito <marcoippolito54@gmail.com> Reviewed-By: Geoffrey Booth <webadmin@geoffreybooth.com>
1 parent 812b126 commit 931d02f

6 files changed

+10
-4
lines changed

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

+1-1
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

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

77
var life;
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

+1-1
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

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

77
var life;
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

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+
import json from "modules-skip-1.json" with { type: "json" };
6+
export function life() { return json.life; }

0 commit comments

Comments
 (0)